We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d9b40ff commit 67f2cedCopy full SHA for 67f2ced
src/io/buf_read/fill_buf.rs
@@ -27,6 +27,6 @@ impl<'a, R: AsyncBufRead + Unpin + ?Sized> Future for FillBufFuture<'a, R> {
27
// This is safe because:
28
// 1. The buffer is valid for the lifetime of the reader.
29
// 2. Output is unrelated to the wrapper (Self).
30
- result.map_ok(|buf| unsafe { std::mem::transmute::<_, &'a [u8]>(buf) })
+ result.map_ok(|buf| unsafe { std::mem::transmute::<&'_ [u8], &'a [u8]>(buf) })
31
}
32
0 commit comments