Skip to content

Commit

Permalink
Improve report_err output: Print newline after msg
Browse files Browse the repository at this point in the history
Signed-off-by: Jiahao XU <[email protected]>
  • Loading branch information
NobodyXu committed Jan 20, 2023
1 parent 6f89fb0 commit fbc483f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bin/src/logging.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit fbc483f

Please sign in to comment.