From a35cc3dcc2787b1c28583fe5530e5ab4947f3c11 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!("");