Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgecarleitao committed Jun 9, 2022
1 parent d74afbc commit 9e656b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bitmap/assign_ops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ pub fn unary_assign<T: BitChunk, F: Fn(T) -> T>(bitmap: &mut MutableBitmap, op:
let mut chunks = bitmap.bitchunks_exact_mut::<T>();

chunks.by_ref().for_each(|chunk| {
let new_chunk: T = match (&chunk[..] as &[u8]).try_into() {
let new_chunk: T = match (chunk as &[u8]).try_into() {
Ok(a) => T::from_ne_bytes(a),
Err(_) => unreachable!(),
};
Expand Down Expand Up @@ -56,7 +56,7 @@ where
.by_ref()
.zip(rhs.by_ref())
.for_each(|(lhs, rhs)| {
let new_chunk: T = match (&lhs[..] as &[u8]).try_into() {
let new_chunk: T = match (lhs as &[u8]).try_into() {
Ok(a) => T::from_ne_bytes(a),
Err(_) => unreachable!(),
};
Expand Down

0 comments on commit 9e656b0

Please sign in to comment.