aboutsummaryrefslogtreecommitdiffstats
path: root/components/net/http_loader.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/net/http_loader.rs')
-rw-r--r--components/net/http_loader.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/components/net/http_loader.rs b/components/net/http_loader.rs
index 18e4e696f80..7868556adfe 100644
--- a/components/net/http_loader.rs
+++ b/components/net/http_loader.rs
@@ -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()
});