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/owned.rs | |
| parent | d9095d8fce59714f75019ecf68911d9931a1af15 (diff) | |
Diffstat (limited to 'src/collection/owned.rs')
| -rwxr-xr-x | src/collection/owned.rs | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/collection/owned.rs b/src/collection/owned.rs index 516f1ea..a7ab1b6 100755 --- a/src/collection/owned.rs +++ b/src/collection/owned.rs @@ -368,7 +368,6 @@ impl<L: OwnedLockable> OwnedLockCollection<L> { /// *guard.1 = "1"; /// let key = OwnedLockCollection::<(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 @@ -553,7 +552,6 @@ impl<L: Sharable> OwnedLockCollection<L> { /// let mut guard = lock.read(key); /// let key = OwnedLockCollection::<(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 @@ -790,7 +788,6 @@ mod tests { std::thread::scope(|s| { s.spawn(|| { let key = ThreadKey::get().unwrap(); - #[allow(unused)] let guard = collection.lock(key); std::mem::forget(guard); }); @@ -817,7 +814,6 @@ mod tests { std::thread::scope(|s| { s.spawn(|| { let key = ThreadKey::get().unwrap(); - #[allow(unused)] let guard = collection.lock(key); std::mem::forget(guard); }); |
