Skip to content

Commit

Permalink
makes clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
irevoire committed Sep 26, 2024
1 parent b3433eb commit 2dddeb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/unaligned_vector/f32.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ impl UnalignedVectorCodec for f32 {
let rem = bytes.len() % size_of::<f32>();
if rem == 0 {
// safety: `UnalignedF32Slice` is transparent
Ok(Cow::Borrowed(unsafe { transmute(bytes) }))
Ok(Cow::Borrowed(unsafe { transmute::<&[u8], &UnalignedVector<f32>>(bytes) }))
} else {
Err(SizeMismatch { vector_codec: "f32", rem })
}
Expand Down

0 comments on commit 2dddeb1

Please sign in to comment.