diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2017-05-06 13:44:14 +0200 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2017-05-06 13:44:14 +0200 |
commit | 6b167b0cdd9acdfa59034ab9abcc27bddad38418 (patch) | |
tree | b3f62bf761bc06c07dd4282b9324bbbe1122a66c /src | |
parent | 4667915ab74fdf5bb14acbb486543090232bc74b (diff) | |
download | nihav-6b167b0cdd9acdfa59034ab9abcc27bddad38418.tar.gz |
byteio doesn't need offset on read_skip()
Diffstat (limited to 'src')
-rw-r--r-- | src/io/byteio.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/io/byteio.rs b/src/io/byteio.rs index 19d2ca5..3a9adac 100644 --- a/src/io/byteio.rs +++ b/src/io/byteio.rs @@ -103,7 +103,7 @@ impl<'a> ByteReader<'a> { read_int!(self, u64, 8, to_le) } - pub fn read_skip(&mut self, len: usize) -> ByteIOResult<u64> { + pub fn read_skip(&mut self, len: usize) -> ByteIOResult<()> { if self.io.is_seekable() { self.io.seek(SeekFrom::Current(len as i64))?; } else { @@ -119,7 +119,7 @@ impl<'a> ByteReader<'a> { ssize = ssize - 1; } } - Ok(self.tell()) + Ok(()) } pub fn tell(&mut self) -> u64 { |