From 3efca8a59604de5cfdb7f4723f49af119f421ec8 Mon Sep 17 00:00:00 2001 From: Otavio Salvador Date: Sat, 27 Oct 2018 11:49:48 -0300 Subject: [PATCH] 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 --- src/cargo-fmt/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cargo-fmt/main.rs b/src/cargo-fmt/main.rs index 45d002518286..84b52aed9432 100644 --- a/src/cargo-fmt/main.rs +++ b/src/cargo-fmt/main.rs @@ -341,6 +341,7 @@ fn run_rustfmt( if verbosity == Verbosity::Verbose { print!("rustfmt"); + print!(" --edition {}", edition); fmt_args.iter().for_each(|f| print!(" {}", f)); files.iter().for_each(|f| print!(" {}", f.display())); println!();