fix panic message

This commit is contained in:
Simon Renblad 2024-10-04 17:22:49 +08:00
parent 61f6355a73
commit b390222508

View File

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