From 320119ce96d27b5731d2d48092deb500785f553f Mon Sep 17 00:00:00 2001 From: liv Date: Fri, 25 Jan 2019 15:11:23 +0100 Subject: [PATCH] add "--color always" to the other rustc commands --- src/run.rs | 2 +- src/verify.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/run.rs b/src/run.rs index 809b79da..ea790699 100644 --- a/src/run.rs +++ b/src/run.rs @@ -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 9aa3a4b9..eb609ab3 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();