File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -399,7 +399,7 @@ fn run_test(
399
399
eprint!("{}", self.0);
400
400
}
401
401
}
402
- let mut out_lines = str::from_utf8(&output.stderr)
402
+ let mut out = str::from_utf8(&output.stderr)
403
403
.unwrap()
404
404
.lines()
405
405
.filter(|l| {
@@ -410,15 +410,15 @@ fn run_test(
410
410
true
411
411
}
412
412
})
413
- .collect::<Vec<_>>();
413
+ .intersperse_with(|| "\n")
414
+ .collect::<String>();
414
415
415
416
// Add a \n to the end to properly terminate the last line,
416
417
// but only if there was output to be printed
417
- if !out_lines .is_empty() {
418
- out_lines .push("" );
418
+ if !out .is_empty() {
419
+ out .push('\n' );
419
420
}
420
421
421
- let out = out_lines.join("\n");
422
422
let _bomb = Bomb(&out);
423
423
match (output.status.success(), lang_string.compile_fail) {
424
424
(true, true) => {
You can’t perform that action at this time.
0 commit comments