Skip to content

Commit

Permalink
fixup! Fix clippy issues
Browse files Browse the repository at this point in the history
  • Loading branch information
bertptrs committed Jan 18, 2025
1 parent 8130b6a commit f2ff2a8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lockapi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ unsafe impl<T> RawMutex for TracingWrapper<T>
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(),
Expand Down Expand Up @@ -154,6 +156,8 @@ unsafe impl<T> RawRwLock for TracingWrapper<T>
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(),
Expand Down

0 comments on commit f2ff2a8

Please sign in to comment.