mirror of
https://github.com/tokio-rs/bytes.git
synced 2026-08-14 00:00:13 +02:00
Rename UninitSlice constructors for consistency with ReadBuf (#599)
tokio::io::ReadBuf uses names `new` and `uninit` for its constructors. For consistency with that, rename recently introduced UninitSlice constructors to match those names.
This commit is contained in:
+1
-1
@@ -1427,7 +1427,7 @@ unsafe impl BufMut for &mut [core::mem::MaybeUninit<u8>] {
|
||||
|
||||
#[inline]
|
||||
fn chunk_mut(&mut self) -> &mut UninitSlice {
|
||||
UninitSlice::from_uninit_slice(self)
|
||||
UninitSlice::uninit(self)
|
||||
}
|
||||
|
||||
#[inline]
|
||||
|
||||
Reference in New Issue
Block a user