mirror of
https://github.com/rust-lang/rustlings.git
synced 2024-12-26 23:36:30 +00:00
add "--color always" to the other rustc commands
This commit is contained in:
parent
df3389cfb0
commit
320119ce96
2 changed files with 2 additions and 2 deletions
|
@ -17,7 +17,7 @@ pub fn run(matches: clap::ArgMatches) {
|
||||||
bar.set_message(format!("Compiling {}...", filename).as_str());
|
bar.set_message(format!("Compiling {}...", filename).as_str());
|
||||||
bar.enable_steady_tick(100);
|
bar.enable_steady_tick(100);
|
||||||
let compilecmd = Command::new("rustc")
|
let compilecmd = Command::new("rustc")
|
||||||
.args(&[filename, "-o", "temp"])
|
.args(&[filename, "-o", "temp", "--color", "always"])
|
||||||
.output()
|
.output()
|
||||||
.expect("fail");
|
.expect("fail");
|
||||||
bar.set_message(format!("Running {}...", filename).as_str());
|
bar.set_message(format!("Running {}...", filename).as_str());
|
||||||
|
|
|
@ -84,7 +84,7 @@ pub fn test(filename: &str) -> Result<(), ()> {
|
||||||
bar.set_message(format!("Testing {}...", filename).as_str());
|
bar.set_message(format!("Testing {}...", filename).as_str());
|
||||||
bar.enable_steady_tick(100);
|
bar.enable_steady_tick(100);
|
||||||
let testcmd = Command::new("rustc")
|
let testcmd = Command::new("rustc")
|
||||||
.args(&["--test", filename, "-o", "temp"])
|
.args(&["--test", filename, "-o", "temp", "--color", "always"])
|
||||||
.output()
|
.output()
|
||||||
.expect("fail");
|
.expect("fail");
|
||||||
bar.finish_and_clear();
|
bar.finish_and_clear();
|
||||||
|
|
Loading…
Reference in a new issue