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/dom/keyboardevent.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/dom/keyboardevent.rs')
-rw-r--r-- | components/script/dom/keyboardevent.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/components/script/dom/keyboardevent.rs b/components/script/dom/keyboardevent.rs index 8aca9b33ae8..3b317a3fcfb 100644 --- a/components/script/dom/keyboardevent.rs +++ b/components/script/dom/keyboardevent.rs @@ -3,9 +3,9 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ use dom::bindings::codegen::Bindings::KeyboardEventBinding; -use dom::bindings::codegen::Bindings::KeyboardEventBinding::{KeyboardEventMethods, KeyboardEventConstants}; +use dom::bindings::codegen::Bindings::KeyboardEventBinding::{KeyboardEventConstants, KeyboardEventMethods}; use dom::bindings::codegen::Bindings::UIEventBinding::UIEventMethods; -use dom::bindings::codegen::InheritTypes::{EventCast, UIEventCast, KeyboardEventDerived}; +use dom::bindings::codegen::InheritTypes::{EventCast, KeyboardEventDerived, UIEventCast}; use dom::bindings::error::Fallible; use dom::bindings::global::GlobalRef; use dom::bindings::js::{Root, RootedReference}; @@ -14,10 +14,10 @@ use dom::event::{Event, EventTypeId}; use dom::uievent::{UIEvent, UIEventTypeId}; use dom::window::Window; use msg::constellation_msg; +use msg::constellation_msg::{ALT, CONTROL, SHIFT, SUPER}; use msg::constellation_msg::{Key, KeyModifiers}; -use msg::constellation_msg::{SHIFT, CONTROL, ALT, SUPER}; use std::borrow::ToOwned; -use std::cell::{RefCell, Cell}; +use std::cell::{Cell, RefCell}; use util::str::DOMString; no_jsmanaged_fields!(Key); |