diff options
Diffstat (limited to 'components/script/task_source')
-rw-r--r-- | components/script/task_source/dom_manipulation.rs | 13 | ||||
-rw-r--r-- | components/script/task_source/user_interaction.rs | 13 |
2 files changed, 16 insertions, 10 deletions
diff --git a/components/script/task_source/dom_manipulation.rs b/components/script/task_source/dom_manipulation.rs index 18721539693..636b99f87bf 100644 --- a/components/script/task_source/dom_manipulation.rs +++ b/components/script/task_source/dom_manipulation.rs @@ -25,11 +25,14 @@ impl fmt::Debug for DOMManipulationTaskSource { } impl TaskSource for DOMManipulationTaskSource { - 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::ScriptEvent, wrapper.wrap_runnable(msg), 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), |