Fill in Read::read_buf for &Stdin

This commit is contained in:
David Tolnay 2024-02-25 23:50:00 -08:00
parent b921a34f17
commit b18280f9d5
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -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)
}