fmt
This commit is contained in:
parent
af2788a06d
commit
9614eb9508
|
@ -89,6 +89,9 @@ impl ByteBuf {
|
|||
}
|
||||
|
||||
pub fn as_slice_mut(&mut self) -> &mut [u8] {
|
||||
self.mmap.as_mut().map(|m| m.as_slice_mut()).unwrap_or(&mut [])
|
||||
self.mmap
|
||||
.as_mut()
|
||||
.map(|m| m.as_slice_mut())
|
||||
.unwrap_or(&mut [])
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue