mirror of
https://github.com/servo/servo.git
synced 2025-08-02 20:20:14 +01:00
Fix some warnings in future Rust nightlies
This commit is contained in:
parent
7281336116
commit
fdcc7653f2
8 changed files with 20 additions and 45 deletions
|
@ -44,7 +44,6 @@ use net_traits::{
|
|||
use servo_arc::Arc;
|
||||
use servo_url::{ImmutableOrigin, ServoUrl};
|
||||
use std::collections::{HashMap, HashSet};
|
||||
use std::error::Error;
|
||||
use std::iter::FromIterator;
|
||||
use std::mem;
|
||||
use std::ops::Deref;
|
||||
|
@ -622,7 +621,7 @@ pub fn http_fetch(
|
|||
HeaderValue::to_str(v)
|
||||
.map(|l| {
|
||||
ServoUrl::parse_with_base(response.actual_response().url(), &l)
|
||||
.map_err(|err| err.description().into())
|
||||
.map_err(|err| err.to_string())
|
||||
})
|
||||
.ok()
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue