diff options
| author | Mica White <botahamec@outlook.com> | 2026-03-14 21:33:50 -0400 |
|---|---|---|
| committer | Mica White <botahamec@outlook.com> | 2026-03-14 21:33:50 -0400 |
| commit | 482b47f4ed786946acb324b60d9f7ae7dd8cc075 (patch) | |
| tree | 4216f042597679f2b76adbb61d3ba9596e96a060 /src/collection/ref.rs | |
| parent | d9095d8fce59714f75019ecf68911d9931a1af15 (diff) | |
Diffstat (limited to 'src/collection/ref.rs')
| -rwxr-xr-x | src/collection/ref.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/collection/ref.rs b/src/collection/ref.rs index a995097..a422bb2 100755 --- a/src/collection/ref.rs +++ b/src/collection/ref.rs @@ -123,7 +123,7 @@ impl<L: Debug> Debug for RefLockCollection<'_, L> { } // safety: the RawLocks must be send because they come from the Send Lockable -#[allow(clippy::non_send_fields_in_send_ty)] +#[expect(clippy::non_send_fields_in_send_ty)] unsafe impl<L: Send> Send for RefLockCollection<'_, L> {} unsafe impl<L: Sync> Sync for RefLockCollection<'_, L> {} @@ -418,7 +418,6 @@ impl<'a, L: Lockable> RefLockCollection<'a, L> { /// *guard.1 = "1"; /// let key = RefLockCollection::<(Mutex<i32>, Mutex<&str>)>::unlock(guard); /// ``` - #[allow(clippy::missing_const_for_fn)] pub fn unlock(guard: LockGuard<L::Guard<'_>>) -> ThreadKey { drop(guard.guard); guard.key @@ -604,7 +603,6 @@ impl<L: Sharable> RefLockCollection<'_, L> { /// let mut guard = lock.read(key); /// let key = RefLockCollection::<(RwLock<i32>, RwLock<&str>)>::unlock_read(guard); /// ``` - #[allow(clippy::missing_const_for_fn)] pub fn unlock_read(guard: LockGuard<L::ReadGuard<'_>>) -> ThreadKey { drop(guard.guard); guard.key |
