diff options
| author | komaeda <819880950@qq.com> | 2019-01-25 22:43:31 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-01-25 22:43:31 +0100 |
| commit | d790b53900f7c4c2be5e690b46f4984496d16d03 (patch) | |
| tree | aafa4862d1245adfa3708f131b6413e24eec111c | |
| parent | df3389cfb04d575b7fdee92e0dac42efd901a025 (diff) | |
| parent | 320119ce96d27b5731d2d48092deb500785f553f (diff) | |
Merge pull request #110 from rustlings/fix/add-color
add "--color always" to the other rustc commands
| -rw-r--r-- | src/run.rs | 2 | ||||
| -rw-r--r-- | src/verify.rs | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -17,7 +17,7 @@ pub fn run(matches: clap::ArgMatches) { bar.set_message(format!("Compiling {}...", filename).as_str()); bar.enable_steady_tick(100); let compilecmd = Command::new("rustc") - .args(&[filename, "-o", "temp"]) + .args(&[filename, "-o", "temp", "--color", "always"]) .output() .expect("fail"); bar.set_message(format!("Running {}...", filename).as_str()); diff --git a/src/verify.rs b/src/verify.rs index 9aa3a4b..eb609ab 100644 --- a/src/verify.rs +++ b/src/verify.rs @@ -84,7 +84,7 @@ pub fn test(filename: &str) -> Result<(), ()> { bar.set_message(format!("Testing {}...", filename).as_str()); bar.enable_steady_tick(100); let testcmd = Command::new("rustc") - .args(&["--test", filename, "-o", "temp"]) + .args(&["--test", filename, "-o", "temp", "--color", "always"]) .output() .expect("fail"); bar.finish_and_clear(); |
