diff --git a/tests/unit/net/cookie.rs b/tests/unit/net/cookie.rs index 8d94f9cba70..e96ebdd4fbd 100644 --- a/tests/unit/net/cookie.rs +++ b/tests/unit/net/cookie.rs @@ -2,8 +2,7 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -extern crate cookie as cookie_rs; - +use cookie_rs; use net::cookie::Cookie; use net::cookie_storage::CookieStorage; use net_traits::CookieSource; diff --git a/tests/unit/net/data_loader.rs b/tests/unit/net/data_loader.rs index 663d9390a40..2f688fa42ae 100644 --- a/tests/unit/net/data_loader.rs +++ b/tests/unit/net/data_loader.rs @@ -2,17 +2,14 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -extern crate hyper; -extern crate hyper_serde; - +use hyper::header::ContentType; +use hyper::mime::{Attr, Mime, SubLevel, TopLevel, Value}; use hyper_serde::Serde; use ipc_channel::ipc; use msg::constellation_msg::{PipelineId, ReferrerPolicy}; use net_traits::{LoadContext, LoadData, LoadOrigin, NetworkError}; use net_traits::LoadConsumer::Channel; use net_traits::ProgressMsg::{Done, Payload}; -use self::hyper::header::ContentType; -use self::hyper::mime::{Attr, Mime, SubLevel, TopLevel, Value}; use url::Url; struct DataLoadTest;