We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 594cf8c commit 8e264ecCopy full SHA for 8e264ec
src/reading.rs
@@ -1001,7 +1001,6 @@ impl<T :io::Read + io::Seek> PacketReader<T> {
1001
// util function
1002
fn seek_before_end<T :io::Read + io::Seek>(mut rdr :T,
1003
offs :u64) -> Result<u64, OggReadError> {
1004
- use std::io::SeekFrom;
1005
let end_pos = try!(rdr.seek(SeekFrom::End(0)));
1006
let end_pos_to_seek = ::std::cmp::min(end_pos, offs);
1007
return Ok(try!(rdr.seek(SeekFrom::End(-(end_pos_to_seek as i64)))));
0 commit comments