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:
@@ -13,7 +13,7 @@ use filetest::subtest::{self, SubTest, Context, Result as STResult};
|
|||||||
pub fn run(files: Vec<String>) -> CommandResult {
|
pub fn run(files: Vec<String>) -> CommandResult {
|
||||||
for (i, f) in files.into_iter().enumerate() {
|
for (i, f) in files.into_iter().enumerate() {
|
||||||
if i != 0 {
|
if i != 0 {
|
||||||
println!("");
|
println!();
|
||||||
}
|
}
|
||||||
cat_one(f)?
|
cat_one(f)?
|
||||||
}
|
}
|
||||||
@@ -30,7 +30,7 @@ fn cat_one(filename: String) -> CommandResult {
|
|||||||
|
|
||||||
for (idx, func) in items.into_iter().enumerate() {
|
for (idx, func) in items.into_iter().enumerate() {
|
||||||
if idx != 0 {
|
if idx != 0 {
|
||||||
println!("");
|
println!();
|
||||||
}
|
}
|
||||||
print!("{}", func);
|
print!("{}", func);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ use utils::read_to_string;
|
|||||||
pub fn run(files: Vec<String>) -> CommandResult {
|
pub fn run(files: Vec<String>) -> CommandResult {
|
||||||
for (i, f) in files.into_iter().enumerate() {
|
for (i, f) in files.into_iter().enumerate() {
|
||||||
if i != 0 {
|
if i != 0 {
|
||||||
println!("");
|
println!();
|
||||||
}
|
}
|
||||||
print_cfg(f)?
|
print_cfg(f)?
|
||||||
}
|
}
|
||||||
@@ -100,7 +100,7 @@ fn print_cfg(filename: String) -> CommandResult {
|
|||||||
|
|
||||||
for (idx, func) in items.into_iter().enumerate() {
|
for (idx, func) in items.into_iter().enumerate() {
|
||||||
if idx != 0 {
|
if idx != 0 {
|
||||||
println!("");
|
println!();
|
||||||
}
|
}
|
||||||
print!("{}", CFGPrinter::new(&func));
|
print!("{}", CFGPrinter::new(&func));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user