aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/window.rs
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2018-12-14 08:31:30 +0100
committerSimon Sapin <simon.sapin@exyr.org>2018-12-28 13:17:47 +0100
commitbe69f9c3e6a6f5efb5ba1edd50955cb12c111bf8 (patch)
treedb8be2dfee5cff6ef0c42e8d46c623eb87529e5a /components/script/dom/window.rs
parent82fc6d9f49a657e2857da3f1b22140e3b6efdf09 (diff)
downloadservo-be69f9c3e6a6f5efb5ba1edd50955cb12c111bf8.tar.gz
servo-be69f9c3e6a6f5efb5ba1edd50955cb12c111bf8.zip
Rustfmt has changed its default style :/
Diffstat (limited to 'components/script/dom/window.rs')
-rw-r--r--components/script/dom/window.rs28
1 files changed, 14 insertions, 14 deletions
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::<Event>().fire(this.upcast::<EventTarget>());
- });
+ let this = this.root();
+ let event = HashChangeEvent::new(
+ &this,
+ atom!("hashchange"),
+ false,
+ false,
+ old_url,
+ new_url);
+ event.upcast::<Event>().fire(this.upcast::<EventTarget>());
+ });
// FIXME(nox): Why are errors silenced here?
let _ = self.script_chan.send(CommonScriptMsg::Task(
ScriptThreadEventCategory::DomEvent,