aboutsummaryrefslogtreecommitdiffstats
path: root/components/net/hsts.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/net/hsts.rs')
-rw-r--r--components/net/hsts.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/components/net/hsts.rs b/components/net/hsts.rs
index 4ebe0262064..681e754fd76 100644
--- a/components/net/hsts.rs
+++ b/components/net/hsts.rs
@@ -2,6 +2,9 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
+use std::collections::HashMap;
+use std::net::{Ipv4Addr, Ipv6Addr};
+
use embedder_traits::resources::{self, Resource};
use headers::{HeaderMapExt, StrictTransportSecurity};
use http::HeaderMap;
@@ -11,8 +14,6 @@ use net_traits::IncludeSubdomains;
use serde::{Deserialize, Serialize};
use servo_config::pref;
use servo_url::{Host, ServoUrl};
-use std::collections::HashMap;
-use std::net::{Ipv4Addr, Ipv6Addr};
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct HstsEntry {