From cdbc11b975046ca796d58ac9f93001953649d9ac Mon Sep 17 00:00:00 2001 From: Simon Renblad Date: Fri, 4 Oct 2024 17:22:49 +0800 Subject: [PATCH] fix panic message --- libsupport_zynq/src/panic.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsupport_zynq/src/panic.rs b/libsupport_zynq/src/panic.rs index 0f9d142..e9e8522 100644 --- a/libsupport_zynq/src/panic.rs +++ b/libsupport_zynq/src/panic.rs @@ -10,7 +10,7 @@ fn panic(info: &core::panic::PanicInfo) -> ! { } else { print!("unknown location"); } - if let Some(message) = info.message() { + if let Some(message) = info.message().as_str() { println!(": {}", message); } else { println!("");