From 7e1c7075e5970f2872451e8fce9f7a6e0957fc3e Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Thu, 3 Nov 2016 11:26:49 +0100 Subject: [PATCH] Remove unnecessary extern crates from networking unit tests. --- tests/unit/net/cookie.rs | 3 +-- tests/unit/net/data_loader.rs | 7 ++----- 2 files changed, 3 insertions(+), 7 deletions(-) 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;