From cb4db4cbd54427203c9358fe5b4dfb2994085461 Mon Sep 17 00:00:00 2001 From: "Daniel.Bloom" Date: Sat, 24 Jul 2021 22:35:11 -0700 Subject: [PATCH] clippy --- crossbeam-utils/src/atomic/atomic_cell.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crossbeam-utils/src/atomic/atomic_cell.rs b/crossbeam-utils/src/atomic/atomic_cell.rs index 84de9dfb6..55eb40108 100644 --- a/crossbeam-utils/src/atomic/atomic_cell.rs +++ b/crossbeam-utils/src/atomic/atomic_cell.rs @@ -683,6 +683,7 @@ fn lock(addr: usize) -> &'static SeqLock { // stored at addresses that are multiples of 3. It'd be too bad if `LEN` was divisible by 3. // In order to protect from such cases, we simply choose a large prime number for `LEN`. const LEN: usize = 97; + #[allow(clippy::declare_interior_mutable_const)] const L: SeqLock = SeqLock::new(); static LOCKS: [SeqLock; LEN] = [ L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L,