diff options
| author | David Tolnay <dtolnay@gmail.com> | 2024-02-25 23:50:00 -0800 |
|---|---|---|
| committer | David Tolnay <dtolnay@gmail.com> | 2024-02-26 00:01:43 -0800 |
| commit | b18280f9d5d07ff1a1b5352924c383c1ed3024e9 (patch) | |
| tree | 64141c639599bd174cb17856eefad5208dcbcd8d /library/std/src | |
| parent | b921a34f1738a615c17db513868b6c5219f32893 (diff) | |
| download | rust-b18280f9d5d07ff1a1b5352924c383c1ed3024e9.tar.gz rust-b18280f9d5d07ff1a1b5352924c383c1ed3024e9.zip | |
Fill in Read::read_buf for &Stdin
Diffstat (limited to 'library/std/src')
| -rw-r--r-- | library/std/src/io/stdio.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/library/std/src/io/stdio.rs b/library/std/src/io/stdio.rs index 6920281f24b..19ed03056a2 100644 --- a/library/std/src/io/stdio.rs +++ b/library/std/src/io/stdio.rs @@ -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) } |
