1
0
Fork 0

fix panic message

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

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