1
0
Fork 0

fix panic message

This commit is contained in:
Simon Renblad 2024-10-04 17:22:49 +08:00
parent 0f02df8a44
commit 6c7be3e8a1
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ fn panic(info: &core::panic::PanicInfo) -> ! {
} else { } else {
print!("unknown location"); print!("unknown location");
} }
if let Some(message) = info.message() { if let Some(message) = info.message().as_str() {
println!(": {}", message); println!(": {}", message);
} else { } else {
println!(""); println!("");