diff options
| author | Tobias Bucher <tobiasbucher5991@gmail.com> | 2025-03-14 12:19:04 +0100 |
|---|---|---|
| committer | Tobias Bucher <tobiasbucher5991@gmail.com> | 2025-03-14 12:36:00 +0100 |
| commit | bdaf23b4cd13dd39cebf1756686f581d6040df37 (patch) | |
| tree | 091eadf1bbf0336306eb6f66d871b275be586ca3 /library/std/src/fs.rs | |
| parent | f7b43542838f0a4a6cfdb17fbeadf45002042a77 (diff) | |
| download | rust-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.rs | 3 |
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 { |
