Skip to content

Commit 29fc941

Browse files
committed
Fix lint.
1 parent 6790989 commit 29fc941

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/bpe/src/bitfield.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ impl BitField {
88
/// All bits are initialized to 1.
99
pub(crate) fn new(bits: usize) -> Self {
1010
Self {
11-
bitfield: vec![u64::MAX; (bits + 63) / 64],
11+
bitfield: vec![u64::MAX; bits.div_ceil(64)],
1212
}
1313
}
1414

0 commit comments

Comments
 (0)