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