From fbc483f9b54889080beedd1c9f50a38b82aecb81 Mon Sep 17 00:00:00 2001 From: Jiahao XU Date: Mon, 9 Jan 2023 14:29:17 +1100 Subject: [PATCH] Improve `report_err` output: Print newline after msg Signed-off-by: Jiahao XU --- crates/bin/src/logging.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bin/src/logging.rs b/crates/bin/src/logging.rs index 43d058e38..2db20e2fd 100644 --- a/crates/bin/src/logging.rs +++ b/crates/bin/src/logging.rs @@ -140,7 +140,7 @@ impl Log for Logger { struct ErrorFreeWriter; fn report_err(err: io::Error) { - write!(io::stderr(), "Failed to write to stdout: {err}").ok(); + writeln!(io::stderr(), "Failed to write to stdout: {err}").ok(); } impl io::Write for &ErrorFreeWriter {