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/systick.rs | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'rtic-monotonics/src/systick.rs') diff --git a/rtic-monotonics/src/systick.rs b/rtic-monotonics/src/systick.rs index a281783..b228e20 100644 --- a/rtic-monotonics/src/systick.rs +++ b/rtic-monotonics/src/systick.rs @@ -157,8 +157,7 @@ impl embedded_hal_async::delay::DelayUs for Systick { /// Register the Systick interrupt for the monotonic. #[macro_export] macro_rules! make_systick_handler { - () => { - { + () => {{ #[no_mangle] #[allow(non_snake_case)] unsafe extern "C" fn SysTick() { @@ -167,12 +166,8 @@ macro_rules! make_systick_handler { pub struct SystickToken; - unsafe impl $crate::InterruptToken<$crate::systick::Systick> - for SystickToken - { - } + unsafe impl $crate::InterruptToken<$crate::systick::Systick> for SystickToken {} SystickToken - } - }; + }}; } -- cgit v1.2.3