Skip to content

Commit 91470c7

Browse files
Add missing #[inline]
1 parent 9b5a6ea commit 91470c7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/interrupt.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ pub unsafe trait InterruptNumber: Copy {
3030
note = "Please update your PAC to one using the latest svd2rust"
3131
)]
3232
unsafe impl<T: Nr + Copy> InterruptNumber for T {
33+
#[inline]
3334
fn number(self) -> u16 {
3435
self.nr() as u16
3536
}

0 commit comments

Comments
 (0)