diff options
author | 2020-10-26 21:56:51 +0100 | |
---|---|---|
committer | 2020-10-26 22:00:22 +0100 | |
commit | 91470c75fbd1a23b5efc5173bc284199360a27dc (patch) | |
tree | af84431d0458ec4a6b927fb7e57a09b2119cf1c8 | |
parent | 9b5a6eafc1f394d819636e60859b3c679b34ff50 (diff) | |
download | cortex-m-91470c75fbd1a23b5efc5173bc284199360a27dc.tar.gz cortex-m-91470c75fbd1a23b5efc5173bc284199360a27dc.tar.zst cortex-m-91470c75fbd1a23b5efc5173bc284199360a27dc.zip |
Add missing #[inline]
-rw-r--r-- | src/interrupt.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/interrupt.rs b/src/interrupt.rs index b5fcab6..51c67c5 100644 --- a/src/interrupt.rs +++ b/src/interrupt.rs @@ -30,6 +30,7 @@ pub unsafe trait InterruptNumber: Copy { note = "Please update your PAC to one using the latest svd2rust" )] unsafe impl<T: Nr + Copy> InterruptNumber for T { + #[inline] fn number(self) -> u16 { self.nr() as u16 } |