mirror of
https://github.com/hsjobeki/noogle.git
synced 2024-09-11 12:59:09 +03:00
make less verbose output
This commit is contained in:
parent
f688293214
commit
a9f08176a7
@ -444,7 +444,7 @@ fn modify_file(file_path: PathBuf) {
|
||||
return;
|
||||
}
|
||||
|
||||
println!("Syntax \n {:?}", root.clone().unwrap().syntax().clone());
|
||||
// println!("Syntax \n {:?}", root.clone().unwrap().syntax().clone());
|
||||
let syntax = root.unwrap().syntax().clone_for_update();
|
||||
let mut maybe_replaced = replace_first_comment(&syntax);
|
||||
let mut count = 0;
|
||||
@ -469,7 +469,5 @@ fn modify_file(file_path: PathBuf) {
|
||||
let mut file = File::create(&file_path).unwrap();
|
||||
file.write_all(updates.text().to_string().as_bytes()).ok();
|
||||
println!("{display_name} - Changed {count} comments");
|
||||
} else {
|
||||
println!("{display_name} - Doing nothing.");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user