Merge pull request #110 from rustlings/fix/add-color

add "--color always" to the other rustc commands
This commit is contained in:
komaeda 2019-01-25 22:43:31 +01:00 committed by GitHub
commit d790b53900
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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());

View File

@ -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();