1
0
Fork 0

fix panic message

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

View File

@ -1,7 +1,6 @@
#![no_std] #![no_std]
#![feature(alloc_error_handler)] #![feature(alloc_error_handler)]
#![feature(panic_info_message)]
#![feature(naked_functions)] #![feature(naked_functions)]
pub extern crate alloc; pub extern crate alloc;

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