From c37a345dc9f4dda6ea29c42f96f6c7201c42cbac Mon Sep 17 00:00:00 2001 From: chansuke Date: Tue, 18 Sep 2018 23:24:15 +0900 Subject: Format script component --- components/script/task_source/dom_manipulation.rs | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) (limited to 'components/script/task_source/dom_manipulation.rs') diff --git a/components/script/task_source/dom_manipulation.rs b/components/script/task_source/dom_manipulation.rs index e72110479de..ad01f514e95 100644 --- a/components/script/task_source/dom_manipulation.rs +++ b/components/script/task_source/dom_manipulation.rs @@ -29,11 +29,7 @@ impl fmt::Debug for DOMManipulationTaskSource { impl TaskSource for DOMManipulationTaskSource { const NAME: TaskSourceName = TaskSourceName::DOMManipulation; - fn queue_with_canceller( - &self, - task: T, - canceller: &TaskCanceller, - ) -> Result<(), ()> + fn queue_with_canceller(&self, task: T, canceller: &TaskCanceller) -> Result<(), ()> where T: TaskOnce + 'static, { @@ -48,12 +44,14 @@ impl TaskSource for DOMManipulationTaskSource { } impl DOMManipulationTaskSource { - pub fn queue_event(&self, - target: &EventTarget, - name: Atom, - bubbles: EventBubbles, - cancelable: EventCancelable, - window: &Window) { + pub fn queue_event( + &self, + target: &EventTarget, + name: Atom, + bubbles: EventBubbles, + cancelable: EventCancelable, + window: &Window, + ) { let target = Trusted::new(target); let task = EventTask { target: target, -- cgit v1.2.3