diff --git a/block/src/lib.rs b/block/src/lib.rs index fcb4d0f77..164f8b0e9 100644 --- a/block/src/lib.rs +++ b/block/src/lib.rs @@ -658,7 +658,9 @@ where let mut slices: SmallVec<[IoSliceMut; 1]> = SmallVec::with_capacity(iovecs.len()); for iovec in iovecs.iter() { // SAFETY: on Linux IoSliceMut wraps around libc::iovec - slices.push(IoSliceMut::new(unsafe { std::mem::transmute(*iovec) })); + slices.push(IoSliceMut::new(unsafe { + std::mem::transmute::(*iovec) + })); } let result = { @@ -691,7 +693,9 @@ where let mut slices: SmallVec<[IoSlice; 1]> = SmallVec::with_capacity(iovecs.len()); for iovec in iovecs.iter() { // SAFETY: on Linux IoSlice wraps around libc::iovec - slices.push(IoSlice::new(unsafe { std::mem::transmute(*iovec) })); + slices.push(IoSlice::new(unsafe { + std::mem::transmute::(*iovec) + })); } let result = {