diff options
author | Brandon Fairchild <csbit32@gmail.com> | 2015-09-17 17:55:01 -0400 |
---|---|---|
committer | Brandon Fairchild <csbit32@gmail.com> | 2015-09-19 12:50:14 -0400 |
commit | de3547e401a0ace8b6bfb4b488ed0be9d5b3d79c (patch) | |
tree | 1dd3e40e5a554466dfb4575758ad15967927d44d /components/devtools | |
parent | e924393be8cce6cb16d3af5a13ed9f634670f843 (diff) | |
download | servo-de3547e401a0ace8b6bfb4b488ed0be9d5b3d79c.tar.gz servo-de3547e401a0ace8b6bfb4b488ed0be9d5b3d79c.zip |
Fix reported test-tidy errors for unmerged import blocks
This merges import blocks that were reported by tidy as unmerged.
Diffstat (limited to 'components/devtools')
-rw-r--r-- | components/devtools/actors/console.rs | 6 | ||||
-rw-r--r-- | components/devtools/actors/framerate.rs | 9 | ||||
-rw-r--r-- | components/devtools/actors/inspector.rs | 6 | ||||
-rw-r--r-- | components/devtools/actors/memory.rs | 3 | ||||
-rw-r--r-- | components/devtools/actors/performance.rs | 1 | ||||
-rw-r--r-- | components/devtools/actors/profiler.rs | 1 | ||||
-rw-r--r-- | components/devtools/actors/root.rs | 1 | ||||
-rw-r--r-- | components/devtools/actors/tab.rs | 1 | ||||
-rw-r--r-- | components/devtools/actors/timeline.rs | 15 | ||||
-rw-r--r-- | components/devtools/lib.rs | 8 |
10 files changed, 19 insertions, 32 deletions
diff --git a/components/devtools/actors/console.rs b/components/devtools/actors/console.rs index 5e2a3cfd526..ae054ebf52c 100644 --- a/components/devtools/actors/console.rs +++ b/components/devtools/actors/console.rs @@ -9,15 +9,13 @@ use actor::{Actor, ActorRegistry, ActorMessageStatus}; use actors::object::ObjectActor; -use protocol::JsonPacketStream; - use devtools_traits::CachedConsoleMessage; use devtools_traits::EvaluateJSReply::{NullValue, VoidValue, NumberValue}; use devtools_traits::EvaluateJSReply::{StringValue, BooleanValue, ActorValue}; use devtools_traits::{CachedConsoleMessageTypes, DevtoolScriptControlMsg, PAGE_ERROR, CONSOLE_API}; -use msg::constellation_msg::PipelineId; - use ipc_channel::ipc::{self, IpcSender}; +use msg::constellation_msg::PipelineId; +use protocol::JsonPacketStream; use rustc_serialize::json::{self, Json, ToJson}; use std::cell::RefCell; use std::collections::BTreeMap; diff --git a/components/devtools/actors/framerate.rs b/components/devtools/actors/framerate.rs index bc3937e9ce8..325572d1d91 100644 --- a/components/devtools/actors/framerate.rs +++ b/components/devtools/actors/framerate.rs @@ -2,17 +2,16 @@ * 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 actor::{Actor, ActorRegistry, ActorMessageStatus}; +use actors::timeline::HighResolutionStamp; +use devtools_traits::DevtoolScriptControlMsg; use ipc_channel::ipc::IpcSender; +use msg::constellation_msg::PipelineId; use rustc_serialize::json; use std::mem; use std::net::TcpStream; use time::precise_time_ns; -use actor::{Actor, ActorRegistry, ActorMessageStatus}; -use actors::timeline::HighResolutionStamp; -use devtools_traits::DevtoolScriptControlMsg; -use msg::constellation_msg::PipelineId; - pub struct FramerateActor { name: String, pipeline: PipelineId, diff --git a/components/devtools/actors/inspector.rs b/components/devtools/actors/inspector.rs index 7dd132a2eb0..b319e4ac703 100644 --- a/components/devtools/actors/inspector.rs +++ b/components/devtools/actors/inspector.rs @@ -5,15 +5,13 @@ //! Liberally derived from the [Firefox JS implementation] //! (http://mxr.mozilla.org/mozilla-central/source/toolkit/devtools/server/actors/inspector.js). +use actor::{Actor, ActorRegistry, ActorMessageStatus}; use devtools_traits::DevtoolScriptControlMsg::{GetLayout, ModifyAttribute}; use devtools_traits::DevtoolScriptControlMsg::{GetRootNode, GetDocumentElement, GetChildren}; use devtools_traits::{DevtoolScriptControlMsg, NodeInfo, ComputedNodeLayout}; - -use actor::{Actor, ActorRegistry, ActorMessageStatus}; -use protocol::JsonPacketStream; - use ipc_channel::ipc::{self, IpcSender}; use msg::constellation_msg::PipelineId; +use protocol::JsonPacketStream; use rustc_serialize::json::{self, Json, ToJson}; use std::cell::RefCell; use std::collections::BTreeMap; diff --git a/components/devtools/actors/memory.rs b/components/devtools/actors/memory.rs index 1011cfd9dab..daf5b4908f1 100644 --- a/components/devtools/actors/memory.rs +++ b/components/devtools/actors/memory.rs @@ -2,11 +2,10 @@ * 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 actor::{Actor, ActorRegistry, ActorMessageStatus}; use rustc_serialize::json; use std::net::TcpStream; -use actor::{Actor, ActorRegistry, ActorMessageStatus}; - #[derive(RustcEncodable)] pub struct TimelineMemoryReply { jsObjectSize: u64, diff --git a/components/devtools/actors/performance.rs b/components/devtools/actors/performance.rs index 4c6d276783b..e2c2d26ed78 100644 --- a/components/devtools/actors/performance.rs +++ b/components/devtools/actors/performance.rs @@ -4,7 +4,6 @@ use actor::{Actor, ActorRegistry, ActorMessageStatus}; use protocol::JsonPacketStream; - use rustc_serialize::json; use std::net::TcpStream; diff --git a/components/devtools/actors/profiler.rs b/components/devtools/actors/profiler.rs index fab3cc18249..938b98b28be 100644 --- a/components/devtools/actors/profiler.rs +++ b/components/devtools/actors/profiler.rs @@ -3,7 +3,6 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ use actor::{Actor, ActorRegistry, ActorMessageStatus}; - use rustc_serialize::json; use std::net::TcpStream; diff --git a/components/devtools/actors/root.rs b/components/devtools/actors/root.rs index 5a7c29ae951..b5334daa313 100644 --- a/components/devtools/actors/root.rs +++ b/components/devtools/actors/root.rs @@ -10,7 +10,6 @@ use actor::{Actor, ActorRegistry, ActorMessageStatus}; use actors::tab::{TabActor, TabActorMsg}; use protocol::JsonPacketStream; - use rustc_serialize::json; use std::net::TcpStream; diff --git a/components/devtools/actors/tab.rs b/components/devtools/actors/tab.rs index 36083a6aafd..3567127c05d 100644 --- a/components/devtools/actors/tab.rs +++ b/components/devtools/actors/tab.rs @@ -11,7 +11,6 @@ use actor::{Actor, ActorRegistry, ActorMessageStatus}; use actors::console::ConsoleActor; use devtools_traits::DevtoolScriptControlMsg::WantsLiveNotifications; use protocol::JsonPacketStream; - use rustc_serialize::json; use std::net::TcpStream; diff --git a/components/devtools/actors/timeline.rs b/components/devtools/actors/timeline.rs index 138aab3eabc..17bf03807f1 100644 --- a/components/devtools/actors/timeline.rs +++ b/components/devtools/actors/timeline.rs @@ -2,22 +2,21 @@ * 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 actor::{Actor, ActorRegistry, ActorMessageStatus}; +use actors::framerate::FramerateActor; +use actors::memory::{MemoryActor, TimelineMemoryReply}; +use devtools_traits::DevtoolScriptControlMsg; +use devtools_traits::DevtoolScriptControlMsg::{SetTimelineMarkers, DropTimelineMarkers}; +use devtools_traits::{PreciseTime, TimelineMarker, TimelineMarkerType}; use ipc_channel::ipc::{self, IpcReceiver, IpcSender}; use msg::constellation_msg::PipelineId; +use protocol::JsonPacketStream; use rustc_serialize::{json, Encoder, Encodable}; use std::cell::RefCell; use std::net::TcpStream; use std::sync::mpsc::channel; use std::sync::{Arc, Mutex}; use std::thread::sleep_ms; - -use actor::{Actor, ActorRegistry, ActorMessageStatus}; -use actors::framerate::FramerateActor; -use actors::memory::{MemoryActor, TimelineMemoryReply}; -use devtools_traits::DevtoolScriptControlMsg; -use devtools_traits::DevtoolScriptControlMsg::{SetTimelineMarkers, DropTimelineMarkers}; -use devtools_traits::{PreciseTime, TimelineMarker, TimelineMarkerType}; -use protocol::JsonPacketStream; use util::task; pub struct TimelineActor { diff --git a/components/devtools/lib.rs b/components/devtools/lib.rs index e552f5ed0ff..d33a82638cb 100644 --- a/components/devtools/lib.rs +++ b/components/devtools/lib.rs @@ -43,15 +43,12 @@ use actors::root::RootActor; use actors::tab::TabActor; use actors::timeline::TimelineActor; use actors::worker::WorkerActor; -use protocol::JsonPacketStream; - use devtools_traits::{ChromeToDevtoolsControlMsg, ConsoleMessage, DevtoolsControlMsg}; use devtools_traits::{DevtoolsPageInfo, DevtoolScriptControlMsg, LogLevel, NetworkEvent}; use devtools_traits::{ScriptToDevtoolsControlMsg}; -use msg::constellation_msg::{PipelineId, WorkerId}; -use util::task::spawn_named; - use ipc_channel::ipc::IpcSender; +use msg::constellation_msg::{PipelineId, WorkerId}; +use protocol::JsonPacketStream; use std::borrow::ToOwned; use std::cell::RefCell; use std::collections::HashMap; @@ -61,6 +58,7 @@ use std::net::{TcpListener, TcpStream, Shutdown}; use std::sync::mpsc::{channel, Receiver, Sender, RecvError}; use std::sync::{Arc, Mutex}; use time::precise_time_ns; +use util::task::spawn_named; mod actor; /// Corresponds to http://mxr.mozilla.org/mozilla-central/source/toolkit/devtools/server/actors/ |