Change println!("") to println!().

https://rust-lang-nursery.github.io/rust-clippy/v0.0.186/index.html#print_with_newline
This commit is contained in:
Dan Gohman
2018-02-21 12:43:36 -08:00
parent 0e22c74085
commit 234d097f65
2 changed files with 4 additions and 4 deletions

View File

@@ -13,7 +13,7 @@ use filetest::subtest::{self, SubTest, Context, Result as STResult};
pub fn run(files: Vec<String>) -> CommandResult {
for (i, f) in files.into_iter().enumerate() {
if i != 0 {
println!("");
println!();
}
cat_one(f)?
}
@@ -30,7 +30,7 @@ fn cat_one(filename: String) -> CommandResult {
for (idx, func) in items.into_iter().enumerate() {
if idx != 0 {
println!("");
println!();
}
print!("{}", func);
}