Skip to content

Commit d31abce

Browse files
author
Jorge Aparicio
committed
remove unsafe from interrupt handlers signature
1 parent a44437b commit d31abce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/generate.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ pub fn interrupt(peripherals: &[Peripheral], items: &mut Vec<Tokens>) {
8989
.unwrap_or_else(|| interrupt.name.clone());
9090
fields.push(quote! {
9191
#[doc = #description]
92-
pub #name: unsafe extern "C" fn(#name_pc),
92+
pub #name: extern "C" fn(#name_pc),
9393
});
9494

9595
mod_items.push(quote! {

0 commit comments

Comments
 (0)