From 3216efd3c5ff97fba54ffaa09ac3ac38482336f5 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Wed, 24 Sep 2025 13:59:15 +1000 Subject: [PATCH] Implement Default for SpinLock This is a bit silly since we cannot implement `Default` for `SpinLock` but clippy is complaining so throw it in. --- src/context/spinlock.rs | 4 ++++ 1 file changed, 4 insertions(+) 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 {