From 02916bc0a370538448a08eecffcdc9c8479d8e56 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Fri, 29 Sep 2023 20:02:53 -0500 Subject: [PATCH] fix(test): Add back in newlines to diffs This was broken in #12581 --- crates/cargo-test-support/src/diff.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/cargo-test-support/src/diff.rs b/crates/cargo-test-support/src/diff.rs index 3fedc839bf1a..cd0c97385531 100644 --- a/crates/cargo-test-support/src/diff.rs +++ b/crates/cargo-test-support/src/diff.rs @@ -132,7 +132,7 @@ pub fn render_colored_changes(changes: &[Change]) -> String Change::Remove(i, s) => (format!("{:<4} ", i), '-', red, s), Change::Keep(x, y, s) => (format!("{:<4}{:<4} ", x, y), ' ', dim, s), }; - write!( + writeln!( buffer, "{dim}{nums}{reset}{bold}{sign}{reset}{color}{text}{reset}" )