diff options
author | Ravi Shankar <wafflespeanut@gmail.com> | 2015-09-24 02:12:45 +0530 |
---|---|---|
committer | Ravi Shankar <wafflespeanut@gmail.com> | 2015-09-24 02:12:45 +0530 |
commit | 889eec364b6e3df22d36581008289e6fbfb8b39f (patch) | |
tree | 056e9dbc10fb3879b4a281296fe99e88490aacc3 /components/msg | |
parent | 705ad72aee58b4fc636bca3a2784c7643048336d (diff) | |
download | servo-889eec364b6e3df22d36581008289e6fbfb8b39f.tar.gz servo-889eec364b6e3df22d36581008289e6fbfb8b39f.zip |
sorted the extern crate, mod & use declarations
Diffstat (limited to 'components/msg')
-rw-r--r-- | components/msg/compositor_msg.rs | 9 | ||||
-rw-r--r-- | components/msg/constellation_msg.rs | 4 | ||||
-rw-r--r-- | components/msg/lib.rs | 16 |
3 files changed, 13 insertions, 16 deletions
diff --git a/components/msg/compositor_msg.rs b/components/msg/compositor_msg.rs index 3ac57165c34..ed66bbebff1 100644 --- a/components/msg/compositor_msg.rs +++ b/components/msg/compositor_msg.rs @@ -3,15 +3,12 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ use azure::azure_hl::Color; -use constellation_msg::PipelineId; -use constellation_msg::{Key, KeyState, KeyModifiers}; -use euclid::Matrix4; -use euclid::{Size2D, Point2D, Rect}; +use constellation_msg::{Key, KeyModifiers, KeyState, PipelineId}; +use euclid::{Matrix4, Point2D, Rect, Size2D}; use ipc_channel::ipc::IpcSender; use layers::layers::{BufferRequest, LayerBufferSet}; use layers::platform::surface::NativeDisplay; -use std::fmt; -use std::fmt::{Formatter, Debug}; +use std::fmt::{self, Debug, Formatter}; /// A newtype struct for denoting the age of messages; prevents race conditions. #[derive(PartialEq, Eq, Debug, Copy, Clone, PartialOrd, Ord, Deserialize, Serialize)] diff --git a/components/msg/constellation_msg.rs b/components/msg/constellation_msg.rs index dc42e2deca5..c43a5566a1c 100644 --- a/components/msg/constellation_msg.rs +++ b/components/msg/constellation_msg.rs @@ -17,13 +17,13 @@ use layers::geometry::DevicePixel; use offscreen_gl_context::GLContextAttributes; use png::Image; use std::collections::HashMap; -use std::sync::mpsc::{channel, Sender, Receiver}; +use std::sync::mpsc::{Receiver, Sender, channel}; use style_traits::viewport::ViewportConstraints; use url::Url; use util::cursor::Cursor; use util::geometry::{PagePx, ViewportPx}; use util::mem::HeapSizeOf; -use webdriver_msg::{WebDriverScriptCommand, LoadStatus}; +use webdriver_msg::{LoadStatus, WebDriverScriptCommand}; #[derive(Clone)] pub struct ConstellationChan(pub Sender<Msg>); diff --git a/components/msg/lib.rs b/components/msg/lib.rs index 0fd0b59c304..995b1bc5587 100644 --- a/components/msg/lib.rs +++ b/components/msg/lib.rs @@ -5,25 +5,25 @@ #![feature(custom_derive, plugin)] #![plugin(serde_macros, plugins)] +#[macro_use] +extern crate bitflags; extern crate azure; -#[macro_use] extern crate bitflags; extern crate canvas_traits; +#[cfg(target_os = "macos")] +extern crate core_foundation; extern crate euclid; extern crate hyper; +#[cfg(target_os = "macos")] +extern crate io_surface; extern crate ipc_channel; extern crate layers; extern crate offscreen_gl_context; extern crate png; extern crate rustc_serialize; extern crate serde; -extern crate util; -extern crate url; extern crate style_traits; - -#[cfg(target_os = "macos")] -extern crate core_foundation; -#[cfg(target_os = "macos")] -extern crate io_surface; +extern crate url; +extern crate util; pub mod compositor_msg; pub mod constellation_msg; |