Skip to content

Commit 6b8ba2e

Browse files
committed
boxed: suppress clippy lint in doctest
1 parent 4a811ae commit 6b8ba2e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/pool/boxed.rs

+1
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
//! const POOL_CAPACITY: usize = 8;
6868
//!
6969
//! let blocks: &'static mut [BoxBlock<u128>] = {
70+
//! #[allow(clippy::declare_interior_mutable_const)]
7071
//! const BLOCK: BoxBlock<u128> = BoxBlock::new(); // <=
7172
//! static mut BLOCKS: [BoxBlock<u128>; POOL_CAPACITY] = [BLOCK; POOL_CAPACITY];
7273
//! unsafe { &mut BLOCKS }

0 commit comments

Comments
 (0)