diff options
Diffstat (limited to 'tests')
| -rwxr-xr-x | tests/evil_mutex.rs | 1 | ||||
| -rwxr-xr-x | tests/evil_rwlock.rs | 1 | ||||
| -rwxr-xr-x | tests/evil_try_mutex.rs | 1 | ||||
| -rwxr-xr-x | tests/evil_try_rwlock.rs | 1 | ||||
| -rwxr-xr-x | tests/evil_unlock_mutex.rs | 2 | ||||
| -rwxr-xr-x | tests/evil_unlock_rwlock.rs | 2 |
6 files changed, 0 insertions, 8 deletions
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; |
