diff --git a/src/lockapi.rs b/src/lockapi.rs index d6fab01..513dc60 100644 --- a/src/lockapi.rs +++ b/src/lockapi.rs @@ -90,6 +90,8 @@ unsafe impl RawMutex for TracingWrapper where T: RawMutex, { + // Known issue with legacy initialisers, allow + #[allow(clippy::declare_interior_mutable_const)] const INIT: Self = Self { inner: T::INIT, id: LazyMutexId::new(), @@ -154,6 +156,8 @@ unsafe impl RawRwLock for TracingWrapper where T: RawRwLock, { + // Known issue with legacy initialisers, allow + #[allow(clippy::declare_interior_mutable_const)] const INIT: Self = Self { inner: T::INIT, id: LazyMutexId::new(),