about summary refs log tree commit diff
path: root/library/std/src/fs.rs
diff options
context:
space:
mode:
authorTobias Bucher <tobiasbucher5991@gmail.com>2025-03-14 12:19:04 +0100
committerTobias Bucher <tobiasbucher5991@gmail.com>2025-03-14 12:36:00 +0100
commitbdaf23b4cd13dd39cebf1756686f581d6040df37 (patch)
tree091eadf1bbf0336306eb6f66d871b275be586ca3 /library/std/src/fs.rs
parentf7b43542838f0a4a6cfdb17fbeadf45002042a77 (diff)
downloadrust-bdaf23b4cd13dd39cebf1756686f581d6040df37.tar.gz
rust-bdaf23b4cd13dd39cebf1756686f581d6040df37.zip
Forward `stream_position` in `Arc<File>` as well
It was missed in #137165.
Diffstat (limited to 'library/std/src/fs.rs')
-rw-r--r--library/std/src/fs.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/library/std/src/fs.rs b/library/std/src/fs.rs
index f9a360585e8..7fc010d2ec3 100644
--- a/library/std/src/fs.rs
+++ b/library/std/src/fs.rs
@@ -1343,6 +1343,9 @@ impl Seek for Arc<File> {
     fn seek(&mut self, pos: SeekFrom) -> io::Result<u64> {
         (&**self).seek(pos)
     }
+    fn stream_position(&mut self) -> io::Result<u64> {
+        (&**self).stream_position()
+    }
 }
 
 impl OpenOptions {