Fix various compiler warnings

This commit is contained in:
Sebastian Dröge 2016-05-15 17:34:13 +03:00
parent d6d306f916
commit e43f247be3
3 changed files with 2 additions and 3 deletions

View file

@ -1,4 +1,3 @@
use std::u64;
use std::fs::File;
use std::path::PathBuf;
use url::Url;

View file

@ -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;

View file

@ -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<usize, GstFlowReturn>;
fn do_seek(&mut self, start: u64, stop: u64) -> bool {
fn do_seek(&mut self, _: u64, _: u64) -> bool {
return true;
}
}