aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_traits/script_msg.rs
diff options
context:
space:
mode:
authorClément DAVID <c.david86@gmail.com>2017-08-23 14:10:08 +0200
committerClément DAVID <c.david86@gmail.com>2017-08-23 21:38:44 +0200
commitc5fe2351124c673d1dc4d59355a03654b4fcc541 (patch)
treebaa752c3c7847e85c0e50389400b45f7bf2fc390 /components/script_traits/script_msg.rs
parentab73f3d61d895289898821272f6af2665c9c645c (diff)
downloadservo-c5fe2351124c673d1dc4d59355a03654b4fcc541.tar.gz
servo-c5fe2351124c673d1dc4d59355a03654b4fcc541.zip
order derivable traits lists
Ignoring : - **generated**.rs - python/tidy/servo_tidy_tests/rust_tidy.rs
Diffstat (limited to 'components/script_traits/script_msg.rs')
-rw-r--r--components/script_traits/script_msg.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script_traits/script_msg.rs b/components/script_traits/script_msg.rs
index 2d449e986a4..30ae527562e 100644
--- a/components/script_traits/script_msg.rs
+++ b/components/script_traits/script_msg.rs
@@ -163,7 +163,7 @@ pub enum ScriptMsg {
}
/// Entities required to spawn service workers
-#[derive(Deserialize, Serialize, Clone)]
+#[derive(Clone, Deserialize, Serialize)]
pub struct ScopeThings {
/// script resource url
pub script_url: ServoUrl,
@@ -178,7 +178,7 @@ pub struct ScopeThings {
}
/// Message that gets passed to service worker scope on postMessage
-#[derive(Deserialize, Serialize, Debug, Clone)]
+#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct DOMMessage(pub Vec<u8>);
/// Channels to allow service worker manager to communicate with constellation and resource thread