From 6d4cb6df3d6f78d58f30b8bf0bceefa003f64fe4 Mon Sep 17 00:00:00 2001 From: Fenrir Date: Mon, 12 Feb 2018 22:40:30 -0700 Subject: [PATCH] Don't output an extra newline when panicking svcOutputDebugString seems to append newlines on its own after each write to stderr --- ctr-std/src/panicking.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ctr-std/src/panicking.rs b/ctr-std/src/panicking.rs index 86cd257..5efee33 100644 --- a/ctr-std/src/panicking.rs +++ b/ctr-std/src/panicking.rs @@ -395,7 +395,7 @@ fn default_hook(info: &PanicInfo) { let mut err = Stderr::new().ok(); let write = |err: &mut ::io::Write| { - let _ = writeln!(err, "{}", error_text); + let _ = write!(err, "{}", error_text); #[cfg(feature = "backtrace")] {