aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/window.rs
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2018-08-08 00:09:02 +0200
committerSimon Sapin <simon.sapin@exyr.org>2018-08-24 17:49:58 +0200
commit1333b6ee4513926fa192d438d16771922ce047a9 (patch)
tree472aa9eed775c729d53ad5a2ed23fb1111ae0001 /components/script/dom/window.rs
parenta9627d233f98da067fd8fc362b17174a00dd0430 (diff)
downloadservo-1333b6ee4513926fa192d438d16771922ce047a9.tar.gz
servo-1333b6ee4513926fa192d438d16771922ce047a9.zip
Fix the build for NLL
Test with `RUSTFLAGS="-Zborrowck=mir -Ztwo-phase-borrows" cargo build` https://internals.rust-lang.org/t/help-us-get-non-lexical-lifetimes-nll-over-the-finish-line/7807/7
Diffstat (limited to 'components/script/dom/window.rs')
-rw-r--r--components/script/dom/window.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/window.rs b/components/script/dom/window.rs
index 48b0861216c..e125aa87fd9 100644
--- a/components/script/dom/window.rs
+++ b/components/script/dom/window.rs
@@ -1153,7 +1153,7 @@ impl Window {
pub fn cancel_all_tasks(&self) {
let mut ignore_flags = self.ignore_further_async_events.borrow_mut();
for task_source_name in TaskSourceName::all() {
- let mut flag = ignore_flags.entry(task_source_name).or_insert(Default::default());
+ let flag = ignore_flags.entry(task_source_name).or_insert(Default::default());
let cancelled = mem::replace(&mut *flag, Default::default());
cancelled.store(true, Ordering::Relaxed);
}