Skip to content

Commit

Permalink
clippy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
marvin-j97 committed Jan 18, 2024
1 parent b03f063 commit 8fd2c67
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/bit_array.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ impl BitArray {
}

/// Gets the i-th byte
#[must_use]
pub fn get(&self, idx: usize) -> bool {
let byte_idx = idx / 8;
let byte = self.0.get(byte_idx).expect("should be in bounds");
Expand Down

0 comments on commit 8fd2c67

Please sign in to comment.