Skip to content

Commit f2c48cf

Browse files
committed
fix the --nocapture functionality
1 parent 6ae0a00 commit f2c48cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/exercise.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@ impl Exercise {
3838
Mode::Test => Command::new("rustc")
3939
.args(&["--test", self.path.to_str().unwrap(), "-o", &temp_file()])
4040
.args(RUSTC_COLOR_ARGS)
41-
.args(&["--", "--nocapture"])
4241
.output(),
4342
}
4443
.expect("Failed to run 'compile' command.")
4544
}
4645

4746
pub fn run(&self) -> Output {
4847
Command::new(&temp_file())
48+
.args(&["--", "--nocapture"])
4949
.output()
5050
.expect("Failed to run 'run' command")
5151
}

0 commit comments

Comments
 (0)