about summary refs log tree commit diff
path: root/library/std/src
diff options
context:
space:
mode:
authorDrMeepster <19316085+DrMeepster@users.noreply.github.com>2021-06-29 17:57:39 -0700
committerDrMeepster <19316085+DrMeepster@users.noreply.github.com>2021-11-02 22:47:27 -0700
commitfc49a29a1492f58a63aa183b7f2a6fd726c8edae (patch)
tree0709b21f1d11043ce1c2341aaa030fbcfea56d76 /library/std/src
parent7c5a895a89e9e6b3950eecc443361281245b50ff (diff)
downloadrust-fc49a29a1492f58a63aa183b7f2a6fd726c8edae.tar.gz
rust-fc49a29a1492f58a63aa183b7f2a6fd726c8edae.zip
add read_buf for &File
Diffstat (limited to 'library/std/src')
-rw-r--r--library/std/src/fs.rs4
1 files changed, 4 insertions, 0 deletions
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<usize> {
         self.inner.read_vectored(bufs)
     }