From 482b47f4ed786946acb324b60d9f7ae7dd8cc075 Mon Sep 17 00:00:00 2001 From: Mica White Date: Sat, 14 Mar 2026 21:33:50 -0400 Subject: Apply clippy restrictions --- src/collection/boxed.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/collection/boxed.rs') diff --git a/src/collection/boxed.rs b/src/collection/boxed.rs index 83675b5..1478120 100755 --- a/src/collection/boxed.rs +++ b/src/collection/boxed.rs @@ -141,7 +141,7 @@ impl + OwnedLockable> FromIterator } // 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 Send for BoxedLockCollection {} unsafe impl Sync for BoxedLockCollection {} @@ -327,7 +327,7 @@ impl BoxedLockCollection { locks.sort_by_key(|lock| (&raw const **lock).cast::<()>() as usize); // safety: we're just changing the lifetimes - let locks: Vec<&'static dyn RawLock> = std::mem::transmute(locks); + let locks: Vec<&'static dyn RawLock> = unsafe { std::mem::transmute(locks) }; let data = &raw const *data; Self { child: data, locks } } @@ -821,7 +821,7 @@ mod tests { } #[test] - #[allow(clippy::float_cmp)] + #[expect(clippy::float_cmp)] fn uses_correct_default() { let collection = BoxedLockCollection::<(Mutex, Mutex>, Mutex)>::default(); -- cgit v1.2.3