We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4a811ae + 6b8ba2e commit 6b3d568Copy full SHA for 6b3d568
src/pool/boxed.rs
@@ -67,6 +67,7 @@
67
//! const POOL_CAPACITY: usize = 8;
68
//!
69
//! let blocks: &'static mut [BoxBlock<u128>] = {
70
+//! #[allow(clippy::declare_interior_mutable_const)]
71
//! const BLOCK: BoxBlock<u128> = BoxBlock::new(); // <=
72
//! static mut BLOCKS: [BoxBlock<u128>; POOL_CAPACITY] = [BLOCK; POOL_CAPACITY];
73
//! unsafe { &mut BLOCKS }
0 commit comments