diff options
author | bors-servo <metajack+bors@gmail.com> | 2015-09-23 15:02:56 -0600 |
---|---|---|
committer | bors-servo <metajack+bors@gmail.com> | 2015-09-23 15:02:56 -0600 |
commit | a7208869f2903e36f9b2f540b55b50283d7df466 (patch) | |
tree | 056e9dbc10fb3879b4a281296fe99e88490aacc3 /components/script/cors.rs | |
parent | 705ad72aee58b4fc636bca3a2784c7643048336d (diff) | |
parent | 889eec364b6e3df22d36581008289e6fbfb8b39f (diff) | |
download | servo-a7208869f2903e36f9b2f540b55b50283d7df466.tar.gz servo-a7208869f2903e36f9b2f540b55b50283d7df466.zip |
Auto merge of #7698 - Wafflespeanut:sorting, r=frewsxcv
sorted the declarations in various files...
This is a direct extract from my abandoned PR for a lint (#7546), along with some rather clumsy modifications (only on `components/script/dom/mod.rs` and `components/style/lib.rs`), because I had to sort some of the files again to make peace with tidy, which hasn't been educated about sorting yet!
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7698)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script/cors.rs')
-rw-r--r-- | components/script/cors.rs | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/components/script/cors.rs b/components/script/cors.rs index 4de0a5ad396..89ef23f1d92 100644 --- a/components/script/cors.rs +++ b/components/script/cors.rs @@ -10,23 +10,22 @@ //! with CORSRequest being expanded into FetchRequest (etc) use hyper::client::Request; -use hyper::header::{AccessControlMaxAge, AccessControlAllowOrigin}; -use hyper::header::{AccessControlRequestHeaders, AccessControlAllowHeaders}; -use hyper::header::{AccessControlRequestMethod, AccessControlAllowMethods}; +use hyper::header::{AccessControlAllowHeaders, AccessControlRequestHeaders}; +use hyper::header::{AccessControlAllowMethods, AccessControlRequestMethod}; +use hyper::header::{AccessControlAllowOrigin, AccessControlMaxAge}; use hyper::header::{ContentType, Host}; -use hyper::header::{Headers, HeaderView}; +use hyper::header::{HeaderView, Headers}; use hyper::method::Method; -use hyper::mime::{Mime, TopLevel, SubLevel}; +use hyper::mime::{Mime, SubLevel, TopLevel}; use hyper::status::StatusClass::Success; -use net_traits::{AsyncResponseListener, ResponseAction, Metadata}; +use net_traits::{AsyncResponseListener, Metadata, ResponseAction}; use network_listener::{NetworkListener, PreInvoke}; use script_task::ScriptChan; use std::ascii::AsciiExt; use std::borrow::ToOwned; use std::cell::RefCell; use std::sync::{Arc, Mutex}; -use time; -use time::{now, Timespec}; +use time::{self, Timespec, now}; use unicase::UniCase; use url::{SchemeData, Url}; use util::mem::HeapSizeOf; |