Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
sfackler committed Dec 9, 2023
1 parent 668e5db commit 3209032
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -232,9 +232,7 @@ where
match cvt(s.read_uninit(unsafe { buf.unfilled_mut() }))? {
Poll::Ready(nread) => {
// SAFETY: read_uninit guarantees that nread bytes have been initialized.
unsafe {
buf.assume_init(nread);
}
unsafe { buf.assume_init(nread) };
buf.advance(nread);
Poll::Ready(Ok(()))
}
Expand Down

0 comments on commit 3209032

Please sign in to comment.