summaryrefslogtreecommitdiff
path: root/src/collection/owned.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/collection/owned.rs')
-rwxr-xr-xsrc/collection/owned.rs4
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);
});