Skip to content

Commit

Permalink
Remove unnecessary extern C on panic handler to fix not-ffi-safe wa…
Browse files Browse the repository at this point in the history
…rning (#85)
  • Loading branch information
cmsd2 authored and phil-opp committed Nov 20, 2019
1 parent c0dbdb5 commit 9801293
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ fn enable_write_protect_bit() {

#[panic_handler]
#[no_mangle]
pub extern "C" fn panic(info: &PanicInfo) -> ! {
pub fn panic(info: &PanicInfo) -> ! {
use core::fmt::Write;
write!(printer::Printer, "{}", info).unwrap();
loop {}
Expand Down

0 comments on commit 9801293

Please sign in to comment.