Skip to content

Commit

Permalink
Shut up clippy more
Browse files Browse the repository at this point in the history
  • Loading branch information
james7132 committed Mar 20, 2024
1 parent 4eca401 commit 535ab5d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/block/default.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use core::iter::Iterator;

use core::ops::{BitAnd, BitAndAssign, BitOr, BitOrAssign, BitXor, BitXorAssign, Not};

#[derive(Copy, Clone, PartialEq, Debug)]
Expand All @@ -8,6 +8,7 @@ pub struct Block(usize);
impl Block {
pub const USIZE_COUNT: usize = 1;
pub const NONE: Self = Block(0);
#[allow(dead_code)]
pub const ALL: Self = Block(!0);
pub const BITS: usize = core::mem::size_of::<Self>() * 8;

Expand All @@ -17,6 +18,7 @@ impl Block {
}

#[inline]
#[allow(dead_code)]
pub const fn from_usize_array(array: [usize; Self::USIZE_COUNT]) -> Self {
Self(array[0])
}
Expand Down

0 comments on commit 535ab5d

Please sign in to comment.