Skip to content

Commit

Permalink
Fill in Read::read_buf for &Stdin
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Feb 26, 2024
1 parent a9c2c57 commit 2164460
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions library/std/src/io/stdio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,9 @@ impl Read for &Stdin {
fn read(&mut self, buf: &mut [u8]) -> io::Result<usize> {
self.lock().read(buf)
}
fn read_buf(&mut self, buf: BorrowedCursor<'_>) -> io::Result<()> {
self.lock().read_buf(buf)
}
fn read_vectored(&mut self, bufs: &mut [IoSliceMut<'_>]) -> io::Result<usize> {
self.lock().read_vectored(bufs)
}
Expand Down

0 comments on commit 2164460

Please sign in to comment.