Skip to content

Commit 9801293

Browse files
cmsd2phil-opp
authored andcommitted
Remove unnecessary extern C on panic handler to fix not-ffi-safe warning (#85)
1 parent c0dbdb5 commit 9801293

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ fn enable_write_protect_bit() {
365365

366366
#[panic_handler]
367367
#[no_mangle]
368-
pub extern "C" fn panic(info: &PanicInfo) -> ! {
368+
pub fn panic(info: &PanicInfo) -> ! {
369369
use core::fmt::Write;
370370
write!(printer::Printer, "{}", info).unwrap();
371371
loop {}

0 commit comments

Comments
 (0)