diff options
author | 2020-10-26 22:07:20 +0000 | |
---|---|---|
committer | 2020-10-26 22:07:20 +0000 | |
commit | e42899b3ed5f6940a9acbe96776993049297cf4f (patch) | |
tree | a68cc022356bbfa792802468fec484311291bcec /src/interrupt.rs | |
parent | 25f6613a6236d42d448d12b36557824a10ce7a77 (diff) | |
parent | 18dca6f5b5a050b8450de52ee9d9879f70c7b058 (diff) | |
download | cortex-m-e42899b3ed5f6940a9acbe96776993049297cf4f.tar.gz cortex-m-e42899b3ed5f6940a9acbe96776993049297cf4f.tar.zst cortex-m-e42899b3ed5f6940a9acbe96776993049297cf4f.zip |
Merge #276
276: Set up GitHub Actions r=adamgreig a=jonas-schievink
Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
Diffstat (limited to 'src/interrupt.rs')
-rw-r--r-- | src/interrupt.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/interrupt.rs b/src/interrupt.rs index ad76ff2..51c67c5 100644 --- a/src/interrupt.rs +++ b/src/interrupt.rs @@ -25,8 +25,12 @@ pub unsafe trait InterruptNumber: Copy { /// 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. -#[deprecated(since="0.7.0", note="Please update your PAC to one using the latest svd2rust")] +#[deprecated( + since = "0.7.0", + 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 } |