Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 2db2327

Browse files
committed
fix verbose output
1 parent dd14d30 commit 2db2327

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/formatting.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,13 @@ fn format_project<T: FormatHandler>(
8787
if (config.skip_children() && path != main_file) || config.ignore().skip_file(&path) {
8888
continue;
8989
}
90-
should_emit_verbose(!input_is_stdin, config, || println!("Formatting {}", path));
90+
should_emit_verbose(input_is_stdin, config, || println!("Formatting {}", path));
9191
let is_root = path == main_file;
9292
context.format_file(path, module, is_root)?;
9393
}
9494
timer = timer.done_formatting();
9595

96-
should_emit_verbose(!input_is_stdin, config, || {
96+
should_emit_verbose(input_is_stdin, config, || {
9797
println!(
9898
"Spent {0:.3} secs in the parsing phase, and {1:.3} secs in the formatting phase",
9999
timer.get_parse_time(),
@@ -611,7 +611,7 @@ fn parse_crate(
611611
// Note that if you see this message and want more information,
612612
// then run the `parse_crate_mod` function above without
613613
// `catch_unwind` so rustfmt panics and you can get a backtrace.
614-
should_emit_verbose(!input_is_stdin, config, || {
614+
should_emit_verbose(input_is_stdin, config, || {
615615
println!("The Rust parser panicked")
616616
});
617617
}

0 commit comments

Comments
 (0)