Skip to content

Commit 9f6e892

Browse files
thaliaarchigitbot
authored and
gitbot
committed
Remove std::os::wasi::fs::FileExt::tell
Following rust-lang#137165 (Use `tell` for `<File as Seek>::stream_position`), `tell` is now directly exposed via `stream_position`, making `<File as FileExt>::tell` redundant. Remove it.
1 parent a368ed9 commit 9f6e892

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

std/src/os/wasi/fs.rs

-11
Original file line numberDiff line numberDiff line change
@@ -162,13 +162,6 @@ pub trait FileExt {
162162
Ok(())
163163
}
164164

165-
/// Returns the current position within the file.
166-
///
167-
/// This corresponds to the `fd_tell` syscall and is similar to
168-
/// `seek` where you offset 0 bytes from the current position.
169-
#[doc(alias = "fd_tell")]
170-
fn tell(&self) -> io::Result<u64>;
171-
172165
/// Adjusts the flags associated with this file.
173166
///
174167
/// This corresponds to the `fd_fdstat_set_flags` syscall.
@@ -240,10 +233,6 @@ impl FileExt for fs::File {
240233
self.as_inner().as_inner().pwrite(bufs, offset)
241234
}
242235

243-
fn tell(&self) -> io::Result<u64> {
244-
self.as_inner().as_inner().tell()
245-
}
246-
247236
fn fdstat_set_flags(&self, flags: u16) -> io::Result<()> {
248237
self.as_inner().as_inner().set_flags(flags)
249238
}

0 commit comments

Comments
 (0)