Skip to content

Commit

Permalink
Fix cargo clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
lemolatoon committed Nov 1, 2024
1 parent 53ec34b commit 2a9a0c2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions roaring/src/bitmap/serialization.rs
Original file line number Diff line number Diff line change
Expand Up @@ -382,8 +382,8 @@ mod test {
const CONTAINER_OFFSET: u32 = u64::BITS * BITMAP_LENGTH as u32;
const CONTAINER_OFFSET_IN_BYTES: u32 = CONTAINER_OFFSET / 8;
let mut bytes = vec![0xff; CONTAINER_OFFSET_IN_BYTES as usize];
bytes.extend(&[0x00; CONTAINER_OFFSET_IN_BYTES as usize]);
bytes.extend(&[0b00000001, 0b00000010, 0b00000011, 0b00000100]);
bytes.extend([0x00; CONTAINER_OFFSET_IN_BYTES as usize]);
bytes.extend([0b00000001, 0b00000010, 0b00000011, 0b00000100]);

let offset = 32;
let rb = RoaringBitmap::from_lsb0_bytes(offset, &bytes);
Expand All @@ -405,7 +405,7 @@ mod test {

// Ensure the empty container is not created
let mut bytes = vec![0x00u8; CONTAINER_OFFSET_IN_BYTES as usize];
bytes.extend(&[0xff]);
bytes.extend([0xff]);
let rb = RoaringBitmap::from_lsb0_bytes(0, &bytes);
assert_eq!(rb.min(), Some(CONTAINER_OFFSET));

Expand Down

0 comments on commit 2a9a0c2

Please sign in to comment.