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

Commit 3efca8a

Browse files
committed
cargo-fmt: Add --edition when printing the command
By mistake, it was forgotten to print out the edition in use when printing the rustcmd command. Fix it. Signed-off-by: Otavio Salvador <[email protected]>
1 parent 8fb1b17 commit 3efca8a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/cargo-fmt/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,7 @@ fn run_rustfmt(
341341

342342
if verbosity == Verbosity::Verbose {
343343
print!("rustfmt");
344+
print!(" --edition {}", edition);
344345
fmt_args.iter().for_each(|f| print!(" {}", f));
345346
files.iter().for_each(|f| print!(" {}", f.display()));
346347
println!();

0 commit comments

Comments
 (0)