From 482b47f4ed786946acb324b60d9f7ae7dd8cc075 Mon Sep 17 00:00:00 2001 From: Mica White Date: Sat, 14 Mar 2026 21:33:50 -0400 Subject: Apply clippy restrictions --- tests/evil_mutex.rs | 1 - tests/evil_rwlock.rs | 1 - tests/evil_try_mutex.rs | 1 - tests/evil_try_rwlock.rs | 1 - tests/evil_unlock_mutex.rs | 2 -- tests/evil_unlock_rwlock.rs | 2 -- 6 files changed, 8 deletions(-) (limited to 'tests') diff --git a/tests/evil_mutex.rs b/tests/evil_mutex.rs index e10acc8..ef6f31a 100755 --- a/tests/evil_mutex.rs +++ b/tests/evil_mutex.rs @@ -10,7 +10,6 @@ struct EvilMutex { } unsafe impl RawMutex for EvilMutex { - #[allow(clippy::declare_interior_mutable_const)] const INIT: Self = Self { inner: parking_lot::RawMutex::INIT, }; diff --git a/tests/evil_rwlock.rs b/tests/evil_rwlock.rs index 4be86a1..a57a27a 100755 --- a/tests/evil_rwlock.rs +++ b/tests/evil_rwlock.rs @@ -11,7 +11,6 @@ struct EvilRwLock { } unsafe impl RawRwLock for EvilRwLock { - #[allow(clippy::declare_interior_mutable_const)] const INIT: Self = Self { inner: parking_lot::RawRwLock::INIT, }; diff --git a/tests/evil_try_mutex.rs b/tests/evil_try_mutex.rs index 5c31a91..22834be 100755 --- a/tests/evil_try_mutex.rs +++ b/tests/evil_try_mutex.rs @@ -12,7 +12,6 @@ struct EvilMutex { } unsafe impl RawMutex for EvilMutex { - #[allow(clippy::declare_interior_mutable_const)] const INIT: Self = Self { inner: parking_lot::RawMutex::INIT, }; diff --git a/tests/evil_try_rwlock.rs b/tests/evil_try_rwlock.rs index b00a666..acba794 100755 --- a/tests/evil_try_rwlock.rs +++ b/tests/evil_try_rwlock.rs @@ -10,7 +10,6 @@ struct EvilRwLock { } unsafe impl RawRwLock for EvilRwLock { - #[allow(clippy::declare_interior_mutable_const)] const INIT: Self = Self { inner: parking_lot::RawRwLock::INIT, }; diff --git a/tests/evil_unlock_mutex.rs b/tests/evil_unlock_mutex.rs index ee12abc..c21fc34 100755 --- a/tests/evil_unlock_mutex.rs +++ b/tests/evil_unlock_mutex.rs @@ -12,7 +12,6 @@ struct KindaEvilMutex { struct EvilMutex {} unsafe impl RawMutex for KindaEvilMutex { - #[allow(clippy::declare_interior_mutable_const)] const INIT: Self = Self { inner: parking_lot::RawMutex::INIT, }; @@ -33,7 +32,6 @@ unsafe impl RawMutex for KindaEvilMutex { } unsafe impl RawMutex for EvilMutex { - #[allow(clippy::declare_interior_mutable_const)] const INIT: Self = Self {}; type GuardMarker = GuardNoSend; diff --git a/tests/evil_unlock_rwlock.rs b/tests/evil_unlock_rwlock.rs index 58402c9..577de85 100755 --- a/tests/evil_unlock_rwlock.rs +++ b/tests/evil_unlock_rwlock.rs @@ -12,7 +12,6 @@ struct KindaEvilRwLock { struct EvilRwLock {} unsafe impl RawRwLock for KindaEvilRwLock { - #[allow(clippy::declare_interior_mutable_const)] const INIT: Self = Self { inner: parking_lot::RawRwLock::INIT, }; @@ -45,7 +44,6 @@ unsafe impl RawRwLock for KindaEvilRwLock { } unsafe impl RawRwLock for EvilRwLock { - #[allow(clippy::declare_interior_mutable_const)] const INIT: Self = Self {}; type GuardMarker = GuardNoSend; -- cgit v1.2.3