diff --git a/library/std/src/fs.rs b/library/std/src/fs.rs index 55c22092c45..be01a031ff0 100644 --- a/library/std/src/fs.rs +++ b/library/std/src/fs.rs @@ -676,6 +676,10 @@ impl Read for &File { self.inner.read(buf) } + fn read_buf(&mut self, buf: &mut ReadBuf<'_>) -> io::Result<()> { + self.inner.read_buf(buf) + } + fn read_vectored(&mut self, bufs: &mut [IoSliceMut<'_>]) -> io::Result { self.inner.read_vectored(bufs) }