Add `Unborrow` trait bound for `Interrupt`
Allows the compiler to figure out bounds for wrapper code of owned
peripherals and interrupts.
Example:
@@ -30,7 +30,7 @@ unsafe impl cortex_m::interrupt::InterruptNumber for NrWrap {
}
}
-pub unsafe trait Interrupt {
+pub unsafe trait Interrupt: crate::util::Unborrow<Target = Self> {
type Priority: From<u8> + Into<u8> + Copy;
fn number(&self) -> u16;
unsafe fn steal() -> Self;
