mirror of
https://github.com/servo/servo.git
synced 2025-08-30 09:38:19 +01:00
sort all uses
This commit is contained in:
parent
d3c7e31722
commit
ec07178b6f
269 changed files with 903 additions and 931 deletions
|
@ -16,9 +16,9 @@ fn assert_parse(url: &'static str,
|
|||
content_type: Option<ContentType>,
|
||||
charset: Option<String>,
|
||||
data: Option<Vec<u8>>) {
|
||||
use net::data_loader::load;
|
||||
use std::sync::mpsc::channel;
|
||||
use url::Url;
|
||||
use net::data_loader::load;
|
||||
|
||||
let (start_chan, start_port) = ipc::channel().unwrap();
|
||||
load(LoadData::new(Url::parse(url).unwrap(), None), Channel(start_chan));
|
||||
|
|
|
@ -2,15 +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/. */
|
||||
|
||||
use net::hsts::HSTSList;
|
||||
use net::hsts::HSTSEntry;
|
||||
use net_traits::IncludeSubdomains;
|
||||
use ipc_channel::ipc;
|
||||
use net::hsts::{HSTSList, HSTSEntry};
|
||||
use net::hsts::{secure_url, preload_hsts_domains};
|
||||
use net::resource_task::ResourceManager;
|
||||
use ipc_channel::ipc;
|
||||
use net_traits::IncludeSubdomains;
|
||||
use std::sync::mpsc::channel;
|
||||
use url::Url;
|
||||
use time;
|
||||
use url::Url;
|
||||
|
||||
#[test]
|
||||
fn test_add_hsts_entry_to_resource_manager_adds_an_hsts_entry() {
|
||||
|
|
|
@ -2,13 +2,12 @@
|
|||
* 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 net::mime_classifier::as_string_option;
|
||||
use net::mime_classifier::{Mp4Matcher, MIMEClassifier};
|
||||
use std::env;
|
||||
use std::fs::File;
|
||||
use std::io::{self, Read};
|
||||
use std::env;
|
||||
use std::path::{self, PathBuf};
|
||||
use net::mime_classifier::Mp4Matcher;
|
||||
use net::mime_classifier::MIMEClassifier;
|
||||
use net::mime_classifier::as_string_option;
|
||||
|
||||
fn read_file(path: &path::Path) -> io::Result<Vec<u8>> {
|
||||
let mut file = try!(File::open(path));
|
||||
|
|
|
@ -4,9 +4,8 @@
|
|||
|
||||
use ipc_channel::ipc;
|
||||
use net::resource_task::new_resource_task;
|
||||
use net_traits::{ControlMsg, LoadData, LoadConsumer};
|
||||
use net_traits::hosts::{parse_hostsfile, host_replacement};
|
||||
use net_traits::ProgressMsg;
|
||||
use net_traits::{ControlMsg, LoadData, LoadConsumer, ProgressMsg};
|
||||
use std::borrow::ToOwned;
|
||||
use std::collections::HashMap;
|
||||
use std::sync::mpsc::channel;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue