diff --git a/src/bitmap/assign_ops.rs b/src/bitmap/assign_ops.rs index 3d94444139a..31bfa24e2ec 100644 --- a/src/bitmap/assign_ops.rs +++ b/src/bitmap/assign_ops.rs @@ -9,7 +9,7 @@ pub fn unary_assign T>(bitmap: &mut MutableBitmap, op: let mut chunks = bitmap.bitchunks_exact_mut::(); 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!(), }; @@ -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!(), };