From ef12ae6b04fa57371507e4ab49f49cb51c30ee4c Mon Sep 17 00:00:00 2001 From: Yandrik Date: Wed, 15 Mar 2023 20:17:26 +0100 Subject: refactor: re-formatted files --- rtic-monotonics/src/rp2040.rs | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'rtic-monotonics/src/rp2040.rs') diff --git a/rtic-monotonics/src/rp2040.rs b/rtic-monotonics/src/rp2040.rs index f2cc7b6..6aa66ce 100644 --- a/rtic-monotonics/src/rp2040.rs +++ b/rtic-monotonics/src/rp2040.rs @@ -139,8 +139,7 @@ impl embedded_hal_async::delay::DelayUs for Timer { /// Register the Timer interrupt for the monotonic. #[macro_export] macro_rules! make_rp2040_monotonic_handler { - () => { - { + () => {{ #[no_mangle] #[allow(non_snake_case)] unsafe extern "C" fn TIMER_IRQ_0() { @@ -149,12 +148,8 @@ macro_rules! make_rp2040_monotonic_handler { pub struct Rp2040Token; - unsafe impl $crate::InterruptToken<$crate::rp2040::Timer> - for Rp2040Token - { - } + unsafe impl $crate::InterruptToken<$crate::rp2040::Timer> for Rp2040Token {} Rp2040Token - } - }; + }}; } -- cgit v1.2.3