mirror of
https://github.com/notohh/rustlings.git
synced 2024-10-30 16:59:12 -04:00
fix the --nocapture functionality
This commit is contained in:
parent
6ae0a00211
commit
f2c48cfac5
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,6 @@ impl Exercise {
|
||||||
Mode::Test => Command::new("rustc")
|
Mode::Test => Command::new("rustc")
|
||||||
.args(&["--test", self.path.to_str().unwrap(), "-o", &temp_file()])
|
.args(&["--test", self.path.to_str().unwrap(), "-o", &temp_file()])
|
||||||
.args(RUSTC_COLOR_ARGS)
|
.args(RUSTC_COLOR_ARGS)
|
||||||
.args(&["--", "--nocapture"])
|
|
||||||
.output(),
|
.output(),
|
||||||
}
|
}
|
||||||
.expect("Failed to run 'compile' command.")
|
.expect("Failed to run 'compile' command.")
|
||||||
|
@ -46,6 +45,7 @@ impl Exercise {
|
||||||
|
|
||||||
pub fn run(&self) -> Output {
|
pub fn run(&self) -> Output {
|
||||||
Command::new(&temp_file())
|
Command::new(&temp_file())
|
||||||
|
.args(&["--", "--nocapture"])
|
||||||
.output()
|
.output()
|
||||||
.expect("Failed to run 'run' command")
|
.expect("Failed to run 'run' command")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue