add read_buf for &File

This commit is contained in:
DrMeepster 2021-06-29 17:57:39 -07:00
parent 7c5a895a89
commit fc49a29a14

View File

@ -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<usize> {
self.inner.read_vectored(bufs)
}