Address reviewer comments
Signed-off-by: Nick Cameron <nrc@ncameron.org>
This commit is contained in:
parent
1a2122fff0
commit
ac70aea985
18 changed files with 74 additions and 55 deletions
|
@ -93,7 +93,7 @@ impl Buffer {
|
|||
if self.pos >= self.filled {
|
||||
debug_assert!(self.pos == self.filled);
|
||||
|
||||
let mut buf: BorrowedBuf<'_> = (&mut *self.buf).into();
|
||||
let mut buf = BorrowedBuf::from(&mut *self.buf);
|
||||
// SAFETY: `self.filled` bytes will always have been initialized.
|
||||
unsafe {
|
||||
buf.set_init(self.filled);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue