diff --git a/src/context/spinlock.rs b/src/context/spinlock.rs index d27a2c84b..bf4d55afc 100644 --- a/src/context/spinlock.rs +++ b/src/context/spinlock.rs @@ -43,6 +43,10 @@ impl SpinLock { } } +impl Default for SpinLock { + fn default() -> Self { Self::new() } +} + #[cfg(test)] impl SpinLock { pub const fn new(v: u64) -> Self {