mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-21 04:58:42 +00:00
Impl io::Seek
for FileLock
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
ebb2d5d0c3
commit
ce50186f4a
1 changed files with 13 additions and 0 deletions
|
@ -66,3 +66,16 @@ impl io::Read for FileLock {
|
|||
self.0.read_vectored(bufs)
|
||||
}
|
||||
}
|
||||
|
||||
impl io::Seek for FileLock {
|
||||
fn seek(&mut self, pos: io::SeekFrom) -> io::Result<u64> {
|
||||
self.0.seek(pos)
|
||||
}
|
||||
|
||||
fn rewind(&mut self) -> io::Result<()> {
|
||||
self.0.rewind()
|
||||
}
|
||||
fn stream_position(&mut self) -> io::Result<u64> {
|
||||
self.0.stream_position()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue