From 2719d9488ff8db5006a26172895a426ba4d35d3c Mon Sep 17 00:00:00 2001 From: Fenrir Date: Fri, 27 Jan 2017 17:22:02 -0700 Subject: [PATCH] ctr-std: Fix panic message formatting --- ctr-std/src/panicking.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ctr-std/src/panicking.rs b/ctr-std/src/panicking.rs index 2b5a178..d6b922d 100644 --- a/ctr-std/src/panicking.rs +++ b/ctr-std/src/panicking.rs @@ -50,10 +50,10 @@ pub fn begin_panic(msg: M, file_line: &(&'static str, u let msg = Box::new(msg); let (file, line) = *file_line; - println!("--------------------------------------------------"); + print!("--------------------------------------------------"); println!("PANIC in {} at line {}:", file, line); println!(" {}", msg); - println!("\x1b[29;00H--------------------------------------------------"); + print!("\x1b[29;00H--------------------------------------------------"); loop {} }