aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_traits/script_msg.rs
diff options
context:
space:
mode:
authorMs2ger <Ms2ger@gmail.com>2017-01-03 14:07:14 +0100
committerMs2ger <Ms2ger@gmail.com>2017-01-03 14:07:30 +0100
commit2dde348b126796e0811870b23d8b81caefbe3c08 (patch)
treebd2a277a14bee100dfe4bbd384a311b4fbd00774 /components/script_traits/script_msg.rs
parentbf643f535602935dbee768f3296357f194570e4c (diff)
downloadservo-2dde348b126796e0811870b23d8b81caefbe3c08.tar.gz
servo-2dde348b126796e0811870b23d8b81caefbe3c08.zip
Rustfmt script_traits.
Diffstat (limited to 'components/script_traits/script_msg.rs')
-rw-r--r--components/script_traits/script_msg.rs9
1 files changed, 4 insertions, 5 deletions
diff --git a/components/script_traits/script_msg.rs b/components/script_traits/script_msg.rs
index 80dbc3f4165..e268d67bc1d 100644
--- a/components/script_traits/script_msg.rs
+++ b/components/script_traits/script_msg.rs
@@ -57,7 +57,7 @@ pub enum LogEntry {
/// Error, with a reason
Error(String),
/// warning, with a reason
- Warn(String)
+ Warn(String),
}
/// Messages from the script to the constellation.
@@ -148,7 +148,7 @@ pub enum ScriptMsg {
/// Enter or exit fullscreen
SetFullscreenState(bool),
/// Requests that the compositor shut down.
- Exit
+ Exit,
}
/// Entities required to spawn service workers
@@ -175,7 +175,7 @@ pub struct SWManagerSenders {
/// sender for communicating with constellation
pub swmanager_sender: IpcSender<SWManagerMsg>,
/// sender for communicating with resource thread
- pub resource_sender: IpcSender<CoreResourceMsg>
+ pub resource_sender: IpcSender<CoreResourceMsg>,
}
/// Messages sent to Service Worker Manager thread
@@ -195,6 +195,5 @@ pub enum ServiceWorkerMsg {
#[derive(Deserialize, Serialize)]
pub enum SWManagerMsg {
/// Provide the constellation with a means of communicating with the Service Worker Manager
- OwnSender(IpcSender<ServiceWorkerMsg>)
-
+ OwnSender(IpcSender<ServiceWorkerMsg>),
}