diff --git a/src/rsfilesink.rs b/src/rsfilesink.rs index 730dddc6..f1848510 100644 --- a/src/rsfilesink.rs +++ b/src/rsfilesink.rs @@ -1,4 +1,3 @@ -use std::u64; use std::fs::File; use std::path::PathBuf; use url::Url; diff --git a/src/rshttpsrc.rs b/src/rshttpsrc.rs index 8629c7be..39c5cbf9 100644 --- a/src/rshttpsrc.rs +++ b/src/rshttpsrc.rs @@ -1,5 +1,5 @@ use std::u64; -use std::io::{Read, Seek, SeekFrom}; +use std::io::Read; use url::Url; use hyper::header::{ContentLength, ContentRange, ContentRangeSpec, Range, ByteRangeSpec, AcceptRanges, RangeUnit}; use hyper::client::Client; diff --git a/src/rssource.rs b/src/rssource.rs index a6bcbbe0..51ef5231 100644 --- a/src/rssource.rs +++ b/src/rssource.rs @@ -13,7 +13,7 @@ pub trait Source: Sync + Send { fn start(&mut self) -> bool; fn stop(&mut self) -> bool; fn fill(&mut self, offset: u64, data: &mut [u8]) -> Result; - fn do_seek(&mut self, start: u64, stop: u64) -> bool { + fn do_seek(&mut self, _: u64, _: u64) -> bool { return true; } }