diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2017-09-08 10:19:06 +0200 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2017-09-08 10:19:06 +0200 |
commit | 53d30d85b3489b78370c25d404c1095cd6104119 (patch) | |
tree | ca0f2cb8c01c3a7f0dfa6c266b25a660feff2ef2 /components/script/task_source/user_interaction.rs | |
parent | 35a725225468631517b993afbcde4f58c88288c6 (diff) | |
download | servo-53d30d85b3489b78370c25d404c1095cd6104119.tar.gz servo-53d30d85b3489b78370c25d404c1095cd6104119.zip |
Reformat some task-related functions
Diffstat (limited to 'components/script/task_source/user_interaction.rs')
-rw-r--r-- | components/script/task_source/user_interaction.rs | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/components/script/task_source/user_interaction.rs b/components/script/task_source/user_interaction.rs index 753c090df9e..9456d940416 100644 --- a/components/script/task_source/user_interaction.rs +++ b/components/script/task_source/user_interaction.rs @@ -25,11 +25,14 @@ impl fmt::Debug for UserInteractionTaskSource { } impl TaskSource for UserInteractionTaskSource { - fn queue_with_wrapper<T>(&self, - msg: Box<T>, - wrapper: &RunnableWrapper) - -> Result<(), ()> - where T: Runnable + Send + 'static { + fn queue_with_wrapper<T>( + &self, + msg: Box<T>, + wrapper: &RunnableWrapper, + ) -> Result<(), ()> + where + T: Runnable + Send + 'static, + { let msg = MainThreadScriptMsg::Common(CommonScriptMsg::RunnableMsg( ScriptThreadEventCategory::InputEvent, wrapper.wrap_runnable(msg), |