summaryrefslogtreecommitdiff
path: root/src/collection/ref.rs
diff options
context:
space:
mode:
authorMica White <botahamec@outlook.com>2026-03-14 21:33:50 -0400
committerMica White <botahamec@outlook.com>2026-03-14 21:33:50 -0400
commit482b47f4ed786946acb324b60d9f7ae7dd8cc075 (patch)
tree4216f042597679f2b76adbb61d3ba9596e96a060 /src/collection/ref.rs
parentd9095d8fce59714f75019ecf68911d9931a1af15 (diff)
Apply clippy restrictionsHEADmain
Diffstat (limited to 'src/collection/ref.rs')
-rwxr-xr-xsrc/collection/ref.rs4
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