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 b921a34 commit b18280f
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 b18280f

Please sign in to comment.