]> git.lizzy.rs Git - rust.git/commitdiff
Fix. rustfmt write to stderr instead stdout
author0x0G <0x0G@users.noreply.github.com>
Mon, 4 Apr 2016 10:49:16 +0000 (13:49 +0300)
committerMarcus Klaas de Vries <mail@marcusklaas.nl>
Mon, 4 Apr 2016 10:49:16 +0000 (12:49 +0200)
Fix. rustfmt write to stderr instead stdout

src/bin/rustfmt.rs

index 062c60e10659858f4d20c93f0d3cc316e4842d58..666185f837e92f2be11f166fdfef2653023a798e 100644 (file)
@@ -212,7 +212,7 @@ fn execute() -> i32 {
                 path = path_tmp;
             };
             if let Some(path) = path.as_ref() {
-                msg!("Using rustfmt config file {}", path.display());
+                println!("Using rustfmt config file {}", path.display());
             }
             for file in files {
                 // Check the file directory if the config-path could not be read or not provided
@@ -222,9 +222,9 @@ fn execute() -> i32 {
                                                                        for {}",
                                                                       file.display()));
                     if let Some(path) = path_tmp.as_ref() {
-                        msg!("Using rustfmt config file {} for {}",
-                             path.display(),
-                             file.display());
+                        println!("Using rustfmt config file {} for {}",
+                                 path.display(),
+                                 file.display());
                     }
                     config = config_tmp;
                 }