aboutsummaryrefslogtreecommitdiff
path: root/rtic-monotonics/src/systick.rs
diff options
context:
space:
mode:
authorYandrik <me@yandrik.dev>2023-03-15 20:17:26 +0100
committerYandrik <me@yandrik.dev>2023-03-15 20:17:26 +0100
commitef12ae6b04fa57371507e4ab49f49cb51c30ee4c (patch)
tree0040ac2adfde39ac64ad5c23a8c5a7d915fc1d63 /rtic-monotonics/src/systick.rs
parent60e5232ee90c8b05e92b1ffa16c2d770e726e2b1 (diff)
refactor: re-formatted files
Diffstat (limited to 'rtic-monotonics/src/systick.rs')
-rw-r--r--rtic-monotonics/src/systick.rs11
1 files changed, 3 insertions, 8 deletions
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
- }
- };
+ }};
}