From 53d30d85b3489b78370c25d404c1095cd6104119 Mon Sep 17 00:00:00 2001 From: Anthony Ramine Date: Fri, 8 Sep 2017 10:19:06 +0200 Subject: Reformat some task-related functions --- components/script/task_source/user_interaction.rs | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'components/script/task_source/user_interaction.rs') 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(&self, - msg: Box, - wrapper: &RunnableWrapper) - -> Result<(), ()> - where T: Runnable + Send + 'static { + fn queue_with_wrapper( + &self, + msg: Box, + wrapper: &RunnableWrapper, + ) -> Result<(), ()> + where + T: Runnable + Send + 'static, + { let msg = MainThreadScriptMsg::Common(CommonScriptMsg::RunnableMsg( ScriptThreadEventCategory::InputEvent, wrapper.wrap_runnable(msg), -- cgit v1.2.3