From be69f9c3e6a6f5efb5ba1edd50955cb12c111bf8 Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Fri, 14 Dec 2018 08:31:30 +0100 Subject: Rustfmt has changed its default style :/ --- components/script/dom/window.rs | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'components/script/dom/window.rs') diff --git a/components/script/dom/window.rs b/components/script/dom/window.rs index 1dbe0fc4c3a..ee637e39ebf 100644 --- a/components/script/dom/window.rs +++ b/components/script/dom/window.rs @@ -2,10 +2,6 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ -use app_units::Au; -use base64; -use bluetooth_traits::BluetoothRequest; -use canvas_traits::webgl::WebGLChan; use crate::dom::bindings::cell::DomRefCell; use crate::dom::bindings::codegen::Bindings::DocumentBinding::{ DocumentMethods, DocumentReadyState, @@ -68,6 +64,10 @@ use crate::task_manager::TaskManager; use crate::task_source::TaskSourceName; use crate::timers::{IsInterval, TimerCallback}; use crate::webdriver_handlers::jsval_to_webdriver; +use app_units::Au; +use base64; +use bluetooth_traits::BluetoothRequest; +use canvas_traits::webgl::WebGLChan; use crossbeam_channel::{unbounded, Sender, TryRecvError}; use cssparser::{Parser, ParserInput}; use devtools_traits::{ScriptToDevtoolsControlMsg, TimelineMarker, TimelineMarkerType}; @@ -1747,16 +1747,16 @@ impl Window { let old_url = doc.url().into_string(); let new_url = url.clone().into_string(); let task = task!(hashchange_event: move || { - let this = this.root(); - let event = HashChangeEvent::new( - &this, - atom!("hashchange"), - false, - false, - old_url, - new_url); - event.upcast::().fire(this.upcast::()); - }); + let this = this.root(); + let event = HashChangeEvent::new( + &this, + atom!("hashchange"), + false, + false, + old_url, + new_url); + event.upcast::().fire(this.upcast::()); + }); // FIXME(nox): Why are errors silenced here? let _ = self.script_chan.send(CommonScriptMsg::Task( ScriptThreadEventCategory::DomEvent, -- cgit v1.2.3