Remove useless use crate_name; imports.

A `crate_name::foo` path always works in 2018
This commit is contained in:
Simon Sapin 2018-11-07 17:08:14 +01:00
parent 50c840fe42
commit 9f977c5287
85 changed files with 0 additions and 115 deletions

View file

@ -5,7 +5,6 @@
//! Implementation of cookie creation and matching as specified by
//! http://tools.ietf.org/html/rfc6265
use cookie_rs;
use hyper_serde::{self, Serde};
use net_traits::pub_domains::is_pub_domain;
use net_traits::CookieSource;

View file

@ -5,7 +5,6 @@
//! Implementation of cookie storage as specified in
//! http://tools.ietf.org/html/rfc6265
use cookie_rs;
use crate::cookie::Cookie;
use net_traits::pub_domains::reg_suffix;
use net_traits::CookieSource;

View file

@ -5,11 +5,9 @@
use embedder_traits::resources::{self, Resource};
use net_traits::pub_domains::reg_suffix;
use net_traits::IncludeSubdomains;
use serde_json;
use servo_url::ServoUrl;
use std::collections::HashMap;
use std::net::{Ipv4Addr, Ipv6Addr};
use time;
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct HstsEntry {

View file

@ -29,7 +29,6 @@ use std::ops::Bound;
use std::sync::atomic::{AtomicBool, Ordering};
use std::sync::Mutex;
use std::time::SystemTime;
use time;
use time::{Duration, Timespec, Tm};
/// The key used to differentiate requests in the cache.

View file

@ -36,8 +36,6 @@ use http::uri::Authority;
use http::{HeaderMap, Request as HyperRequest};
use hyper::{Body, Client, Method, Response as HyperResponse, StatusCode};
use hyper_serde::Serde;
use log;
use mime;
use msg::constellation_msg::{HistoryStateId, PipelineId};
use net_traits::quality::{quality_to_value, Quality, QualityItem};
use net_traits::request::{CacheMode, CredentialsMode, Destination, Origin};
@ -61,7 +59,6 @@ use std::time::{Duration, SystemTime};
use time::{self, Tm};
use tokio::prelude::{future, Future, Stream};
use tokio::runtime::Runtime;
use uuid;
lazy_static! {
pub static ref HANDLE: Mutex<Runtime> = { Mutex::new(Runtime::new().unwrap()) };

View file

@ -9,7 +9,6 @@ use net_traits::image_cache::{CanRequestImages, ImageCache, ImageResponder};
use net_traits::image_cache::{ImageOrMetadataAvailable, ImageResponse, ImageState};
use net_traits::image_cache::{PendingImageId, UsePlaceholder};
use net_traits::{FetchMetadata, FetchResponseMsg, NetworkError};
use pixels;
use servo_url::ServoUrl;
use std::collections::hash_map::Entry::{Occupied, Vacant};
use std::collections::HashMap;
@ -17,7 +16,6 @@ use std::io;
use std::mem;
use std::sync::{Arc, Mutex};
use std::thread;
use webrender_api;
///
/// TODO(gw): Remaining work on image cache:

View file

@ -4,7 +4,6 @@
//! A thread that takes a URL and streams back the binary data.
use cookie_rs;
use crate::connector::{create_http_client, create_ssl_connector_builder};
use crate::cookie;
use crate::cookie_storage::CookieStorage;
@ -33,8 +32,6 @@ use profile_traits::mem::ProfilerChan as MemProfilerChan;
use profile_traits::mem::{Report, ReportKind, ReportsChan};
use profile_traits::time::ProfilerChan;
use serde::{Deserialize, Serialize};
use serde_json;
use servo_allocator;
use servo_channel::Sender;
use servo_config::opts;
use servo_url::ServoUrl;

View file

@ -2,7 +2,6 @@
* 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/. */
use cookie_rs;
use net::cookie::Cookie;
use net::cookie_storage::CookieStorage;
use net_traits::CookieSource;

View file

@ -5,7 +5,6 @@
use net::hsts::{HstsEntry, HstsList};
use net_traits::IncludeSubdomains;
use std::collections::HashMap;
use time;
#[test]
fn test_hsts_entry_is_not_expired_when_it_has_no_timestamp() {

View file

@ -11,7 +11,6 @@ use net_traits::request::{Destination, Request, RequestInit};
use net_traits::response::{Response, ResponseBody};
use servo_url::ServoUrl;
use std::sync::mpsc::channel;
use time;
#[test]