From 87b9075920ae46aeb5e97220ea02cd88fa1d5652 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Tue, 2 Aug 2022 18:27:06 -0400 Subject: [PATCH] avoid double-space in test logging --- ui_test/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui_test/src/lib.rs b/ui_test/src/lib.rs index bcc48b4b631..9206c0f3d8e 100644 --- a/ui_test/src/lib.rs +++ b/ui_test/src/lib.rs @@ -194,9 +194,9 @@ enum TestResult { run_test(&path, &config, &target, &revision, &comments); // Using a single `eprintln!` to prevent messages from threads from getting intermingled. - let mut msg = format!("{} ", path.display()); + let mut msg = format!("{}", path.display()); if !revision.is_empty() { - write!(msg, "(revision `{revision}`) ").unwrap(); + write!(msg, " (revision `{revision}`) ").unwrap(); } if errors.is_empty() { finished_files_sender.send((msg, TestResult::Ok))?;