aboutsummaryrefslogtreecommitdiff
path: root/embassy-stm32
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2024-11-08 13:20:13 +0100
committerDario Nieuwenhuis <[email protected]>2024-11-08 13:20:13 +0100
commit0de204ccd7fea064f1b2ad5f0830a9b8ff0a09a9 (patch)
tree8581bf7a96d524d0b1c972d41bcc20aa4c02c4af /embassy-stm32
parent05d36233fc2336b17112dda52aaa0f53251c0dc0 (diff)
Fix "non-local impl definition" warning from recent nightlies.
Diffstat (limited to 'embassy-stm32')
-rw-r--r--embassy-stm32/src/lib.rs11
1 files changed, 10 insertions, 1 deletions
diff --git a/embassy-stm32/src/lib.rs b/embassy-stm32/src/lib.rs
index 1e6185bc1..286a18da2 100644
--- a/embassy-stm32/src/lib.rs
+++ b/embassy-stm32/src/lib.rs
@@ -186,12 +186,21 @@ macro_rules! bind_interrupts {
186 $(#[cfg($cond_handler)])? 186 $(#[cfg($cond_handler)])?
187 <$handler as $crate::interrupt::typelevel::Handler<$crate::interrupt::typelevel::$irq>>::on_interrupt(); 187 <$handler as $crate::interrupt::typelevel::Handler<$crate::interrupt::typelevel::$irq>>::on_interrupt();
188 188
189 )*
190 }
191
192 $(#[cfg($cond_irq)])?
193 $crate::bind_interrupts!(@inner
194 $(
189 $(#[cfg($cond_handler)])? 195 $(#[cfg($cond_handler)])?
190 unsafe impl $crate::interrupt::typelevel::Binding<$crate::interrupt::typelevel::$irq, $handler> for $name {} 196 unsafe impl $crate::interrupt::typelevel::Binding<$crate::interrupt::typelevel::$irq, $handler> for $name {}
191 )* 197 )*
192 } 198 );
193 )* 199 )*
194 }; 200 };
201 (@inner $($t:tt)*) => {
202 $($t)*
203 }
195} 204}
196 205
197// Reexports 206// Reexports