diff --git a/embassy/src/interrupt.rs b/embassy/src/interrupt.rs index 99d7af75..df3a79cc 100644 --- a/embassy/src/interrupt.rs +++ b/embassy/src/interrupt.rs @@ -30,7 +30,7 @@ unsafe impl cortex_m::interrupt::InterruptNumber for NrWrap { } } -pub unsafe trait Interrupt { +pub unsafe trait Interrupt: crate::util::Unborrow { type Priority: From + Into + Copy; fn number(&self) -> u16; unsafe fn steal() -> Self;