Skip to content

Commit cb4db4c

Browse files
clippy
1 parent b552900 commit cb4db4c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crossbeam-utils/src/atomic/atomic_cell.rs

+1
Original file line numberDiff line numberDiff line change
@@ -683,6 +683,7 @@ fn lock(addr: usize) -> &'static SeqLock {
683683
// stored at addresses that are multiples of 3. It'd be too bad if `LEN` was divisible by 3.
684684
// In order to protect from such cases, we simply choose a large prime number for `LEN`.
685685
const LEN: usize = 97;
686+
#[allow(clippy::declare_interior_mutable_const)]
686687
const L: SeqLock = SeqLock::new();
687688
static LOCKS: [SeqLock; LEN] = [
688689
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,

0 commit comments

Comments
 (0)