From 2ef16a4121ad497e7fb290445ffe644b6b8ceae6 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sat, 10 Feb 2018 12:35:40 +0300 Subject: G: type item --- tests/testutils/src/lib.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'tests/testutils/src') diff --git a/tests/testutils/src/lib.rs b/tests/testutils/src/lib.rs index f829b243b..d181e455b 100644 --- a/tests/testutils/src/lib.rs +++ b/tests/testutils/src/lib.rs @@ -76,15 +76,14 @@ fn test_from_dir(dir: &Path) -> Vec { fn print_difference(expected: &str, actual: &str, path: &Path) { let dir = project_dir(); let path = path.strip_prefix(&dir).unwrap_or_else(|_| path); - println!("\nfile: {}", path.display()); if expected.trim() == actual.trim() { - println!("whitespace difference"); - println!("rewriting the file"); + println!("whitespace difference, rewriting"); file::put_text(path, actual).unwrap(); } else { let changeset = Changeset::new(actual, expected, "\n"); - println!("{}", changeset); + print!("{}", changeset); } + println!("file: {}\n", path.display()); panic!("Comparison failed") } -- cgit v1.2.3