]> git.lizzy.rs Git - rust.git/commitdiff
cargo-fmt: Add --edition when printing the command
authorOtavio Salvador <otavio@ossystems.com.br>
Sat, 27 Oct 2018 14:49:48 +0000 (11:49 -0300)
committerOtavio Salvador <otavio@ossystems.com.br>
Sat, 27 Oct 2018 14:49:48 +0000 (11:49 -0300)
By mistake, it was forgotten to print out the edition in use when
printing the rustcmd command. Fix it.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
src/cargo-fmt/main.rs

index 45d00251828606fda6fad66ab242359521960b2e..84b52aed9432648b387a31c2c0e585395395d69e 100644 (file)
@@ -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!();