diff options
Diffstat (limited to 'crates/utils/src/lib.rs')
-rw-r--r-- | crates/utils/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/utils/src/lib.rs b/crates/utils/src/lib.rs index 1e8ddfb..2181046 100644 --- a/crates/utils/src/lib.rs +++ b/crates/utils/src/lib.rs @@ -134,10 +134,10 @@ impl_FromEndianBytes!(i8, i16, i32, i64, isize, u8, u16, u32, u64, usize); /// Runs the body block the first time it is encountered. #[macro_export] macro_rules! first_time { - ($($stmt:stmt)*) => {{ + ($($stmt:stmt;)*) => {{ use spin::lazy::Lazy; static LAZY: Lazy<()> = Lazy::new(|| { - $($stmt)* + $($stmt;)* }); *Lazy::force(&LAZY) }}; |