Skip to content

Commit

Permalink
Merge pull request #418 from newAM/boxed
Browse files Browse the repository at this point in the history
boxed: suppress clippy lint in doctest
  • Loading branch information
Dirbaio authored Nov 20, 2023
2 parents 4a811ae + 6b8ba2e commit 6b3d568
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pool/boxed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
//! const POOL_CAPACITY: usize = 8;
//!
//! let blocks: &'static mut [BoxBlock<u128>] = {
//! #[allow(clippy::declare_interior_mutable_const)]
//! const BLOCK: BoxBlock<u128> = BoxBlock::new(); // <=
//! static mut BLOCKS: [BoxBlock<u128>; POOL_CAPACITY] = [BLOCK; POOL_CAPACITY];
//! unsafe { &mut BLOCKS }
Expand Down

0 comments on commit 6b3d568

Please sign in to comment.