Skip to content

Commit 255faf7

Browse files
committed
remove deprecated impl for Nr trait
1 parent 70f778d commit 255faf7

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/interrupt.rs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! Interrupts
22
3-
pub use bare_metal::{CriticalSection, Mutex, Nr};
3+
pub use bare_metal::{CriticalSection, Mutex};
44

55
/// Trait for enums of external interrupt numbers.
66
///
@@ -23,15 +23,6 @@ pub unsafe trait InterruptNumber: Copy {
2323
fn number(self) -> u16;
2424
}
2525

26-
/// Implement InterruptNumber for the old bare_metal::Nr trait.
27-
/// This implementation is for backwards compatibility only and will be removed in cortex-m 0.8.
28-
unsafe impl<T: Nr + Copy> InterruptNumber for T {
29-
#[inline]
30-
fn number(self) -> u16 {
31-
self.nr() as u16
32-
}
33-
}
34-
3526
/// Disables all interrupts
3627
#[inline]
3728
pub fn disable() {

0 commit comments

Comments
 (0)