Removed some unwrap()s.

This commit is contained in:
Jordan Petridis
2018-01-09 09:21:07 +02:00
parent 87a259e1a4
commit ea70addbc6
4 changed files with 38 additions and 32 deletions
-1
View File
@@ -613,7 +613,6 @@ impl<'a> Source {
fn update_etag(&mut self, req: &reqwest::Response) -> Result<()> {
let headers = req.headers();
// let etag = headers.get_raw("ETag").unwrap();
let etag = headers.get::<ETag>();
let lmod = headers.get::<LastModified>();