aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_traits
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2018-11-01 23:45:06 +0100
committerSimon Sapin <simon.sapin@exyr.org>2018-11-06 15:26:02 +0100
commit45f7199eee82c66637ec68287eafa40a651001c4 (patch)
tree8c0802f4ac7b89c2ce4d73063c8f65b9ee5face9 /components/script_traits
parent86f148fb97601413c0d983f21b760d973ade7a75 (diff)
downloadservo-45f7199eee82c66637ec68287eafa40a651001c4.tar.gz
servo-45f7199eee82c66637ec68287eafa40a651001c4.zip
`cargo fix --edition`
Diffstat (limited to 'components/script_traits')
-rw-r--r--components/script_traits/lib.rs6
-rw-r--r--components/script_traits/script_msg.rs18
-rw-r--r--components/script_traits/webdriver_msg.rs2
3 files changed, 13 insertions, 13 deletions
diff --git a/components/script_traits/lib.rs b/components/script_traits/lib.rs
index 6ac224d0b51..c63481efc57 100644
--- a/components/script_traits/lib.rs
+++ b/components/script_traits/lib.rs
@@ -74,12 +74,12 @@ use std::sync::Arc;
use style_traits::CSSPixel;
use style_traits::SpeculativePainter;
use style_traits::cursor::CursorKind;
-use webdriver_msg::{LoadStatus, WebDriverScriptCommand};
+use crate::webdriver_msg::{LoadStatus, WebDriverScriptCommand};
use webrender_api::{DevicePixel, DeviceUintSize, DocumentId, ExternalScrollId, ImageKey, RenderApiSender};
use webvr_traits::{WebVREvent, WebVRMsg};
-pub use script_msg::{LayoutMsg, ScriptMsg, EventResult, LogEntry};
-pub use script_msg::{ServiceWorkerMsg, ScopeThings, SWManagerMsg, SWManagerSenders, DOMMessage};
+pub use crate::script_msg::{LayoutMsg, ScriptMsg, EventResult, LogEntry};
+pub use crate::script_msg::{ServiceWorkerMsg, ScopeThings, SWManagerMsg, SWManagerSenders, DOMMessage};
/// The address of a node. Layout sends these back. They must be validated via
/// `from_untrusted_node_address` before they can be used, because we do not trust layout.
diff --git a/components/script_traits/script_msg.rs b/components/script_traits/script_msg.rs
index f7c075f8cd8..5913525a8ab 100644
--- a/components/script_traits/script_msg.rs
+++ b/components/script_traits/script_msg.rs
@@ -2,15 +2,15 @@
* 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 AnimationState;
-use AuxiliaryBrowsingContextLoadInfo;
-use DocumentState;
-use IFrameLoadInfo;
-use IFrameLoadInfoWithData;
-use LayoutControlMsg;
-use LoadData;
-use WorkerGlobalScopeInit;
-use WorkerScriptLoadOrigin;
+use crate::AnimationState;
+use crate::AuxiliaryBrowsingContextLoadInfo;
+use crate::DocumentState;
+use crate::IFrameLoadInfo;
+use crate::IFrameLoadInfoWithData;
+use crate::LayoutControlMsg;
+use crate::LoadData;
+use crate::WorkerGlobalScopeInit;
+use crate::WorkerScriptLoadOrigin;
use canvas_traits::canvas::{CanvasMsg, CanvasId};
use devtools_traits::{ScriptToDevtoolsControlMsg, WorkerId};
use embedder_traits::EmbedderMsg;
diff --git a/components/script_traits/webdriver_msg.rs b/components/script_traits/webdriver_msg.rs
index cae235388a3..98c2e37a22e 100644
--- a/components/script_traits/webdriver_msg.rs
+++ b/components/script_traits/webdriver_msg.rs
@@ -4,7 +4,7 @@
#![allow(missing_docs)]
-use cookie_rs::Cookie;
+use crate::cookie_rs::Cookie;
use euclid::Rect;
use hyper_serde::Serde;
use ipc_channel::ipc::IpcSender;