diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 02ea113f..97c465af 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -6,6 +6,11 @@ on: pull_request: branches: ['main'] +env: + CARGO_TERM_COLOR: always + RUST_BACKTRACE: 1 + RUSTFLAGS: "-D warnings" + jobs: test: runs-on: ${{ matrix.os }} diff --git a/src/unaligned_vector/f32.rs b/src/unaligned_vector/f32.rs index 72a967fb..aa078dea 100644 --- a/src/unaligned_vector/f32.rs +++ b/src/unaligned_vector/f32.rs @@ -14,7 +14,7 @@ impl UnalignedVectorCodec for f32 { let rem = bytes.len() % size_of::(); if rem == 0 { // safety: `UnalignedF32Slice` is transparent - Ok(Cow::Borrowed(unsafe { transmute(bytes) })) + Ok(Cow::Borrowed(unsafe { transmute::<&[u8], &UnalignedVector>(bytes) })) } else { Err(SizeMismatch { vector_codec: "f32", rem }) }