diff options
author | 2021-08-29 12:06:25 +0200 | |
---|---|---|
committer | 2021-08-29 12:06:25 +0200 | |
commit | 255faf75de84f72389a45e3d99b824e0a4599bed (patch) | |
tree | 1eb71d686776bf7c1c8b14936797c049364e2610 | |
parent | 70f778d51b7173db8467afa19b64c59995624a13 (diff) | |
download | cortex-m-255faf75de84f72389a45e3d99b824e0a4599bed.tar.gz cortex-m-255faf75de84f72389a45e3d99b824e0a4599bed.tar.zst cortex-m-255faf75de84f72389a45e3d99b824e0a4599bed.zip |
remove deprecated impl for Nr trait
-rw-r--r-- | src/interrupt.rs | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/interrupt.rs b/src/interrupt.rs index 0fd1284..68719ec 100644 --- a/src/interrupt.rs +++ b/src/interrupt.rs @@ -1,6 +1,6 @@ //! Interrupts -pub use bare_metal::{CriticalSection, Mutex, Nr}; +pub use bare_metal::{CriticalSection, Mutex}; /// Trait for enums of external interrupt numbers. /// @@ -23,15 +23,6 @@ pub unsafe trait InterruptNumber: Copy { fn number(self) -> u16; } -/// Implement InterruptNumber for the old bare_metal::Nr trait. -/// This implementation is for backwards compatibility only and will be removed in cortex-m 0.8. -unsafe impl<T: Nr + Copy> InterruptNumber for T { - #[inline] - fn number(self) -> u16 { - self.nr() as u16 - } -} - /// Disables all interrupts #[inline] pub fn disable() { |