X-Git-Url: https://git.nihav.org/?a=blobdiff_plain;f=src%2Fio%2Fbyteio.rs;h=3a9adac5f10c344baac89c50d31163c45bfc71fb;hb=6b167b0cdd9acdfa59034ab9abcc27bddad38418;hp=19d2ca58699a501e754685987424016620a9c538;hpb=90aa4e6be97ce0849901ce188b30773b2d6662ff;p=nihav.git 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 { + 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 {