about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <476013+matthiaskrgr@users.noreply.github.com>2025-03-22 11:59:16 +0100
committerGitHub <noreply@github.com>2025-03-22 11:59:16 +0100
commit07c503c3e461f6fdb844213e96247aa92e2685cb (patch)
tree66f57762ee1b17b67d6f40566d34ae608bcbb2ad
parent92acd148f8c98bbb5217e18731b892f887bc1c1e (diff)
parentbdaf23b4cd13dd39cebf1756686f581d6040df37 (diff)
downloadrust-07c503c3e461f6fdb844213e96247aa92e2685cb.tar.gz
rust-07c503c3e461f6fdb844213e96247aa92e2685cb.zip
Rollup merge of #138490 - tbu-:pr_arc_file_pos, r=Noratrieb
Forward `stream_position` in `Arc<File>` as well

It was missed in #137165.
-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 {