diff --git a/src/pool/boxed.rs b/src/pool/boxed.rs index aafad2466c..ceba53f30a 100644 --- a/src/pool/boxed.rs +++ b/src/pool/boxed.rs @@ -67,6 +67,7 @@ //! const POOL_CAPACITY: usize = 8; //! //! let blocks: &'static mut [BoxBlock] = { +//! #[allow(clippy::declare_interior_mutable_const)] //! const BLOCK: BoxBlock = BoxBlock::new(); // <= //! static mut BLOCKS: [BoxBlock; POOL_CAPACITY] = [BLOCK; POOL_CAPACITY]; //! unsafe { &mut BLOCKS }