Update to reqwest 0.8

This commit is contained in:
Sebastian Dröge 2017-10-25 14:58:41 +02:00
parent d8dbe8414c
commit d4138cb566
2 changed files with 3 additions and 3 deletions

View file

@ -9,7 +9,7 @@ license = "MIT/Apache-2.0"
url = "1.1"
gst-plugin = { path="../gst-plugin" }
gst-plugin-simple = { path="../gst-plugin-simple" }
reqwest = "0.7"
reqwest = "0.8"
gstreamer = { git = "https://github.com/sdroege/gstreamer-rs", features = ["v1_10"] }
[lib]

View file

@ -50,7 +50,7 @@ impl HttpSrc {
gst::DebugColorFlags::empty(),
"Rust HTTP source",
),
client: Client::new().unwrap(),
client: Client::new(),
}
}
@ -66,7 +66,7 @@ impl HttpSrc {
stop: Option<u64>,
) -> Result<StreamingState, ErrorMessage> {
let cat = self.cat;
let mut req = self.client.get(uri.clone()).unwrap();
let mut req = self.client.get(uri.clone());
match (start != 0, stop) {
(false, None) => (),