Revert "Fix the build for NLL"

This reverts commit d1733aa502.
This commit is contained in:
Josh Matthews 2018-08-07 20:24:55 -04:00
parent d1733aa502
commit 7c32ad7c3d
5 changed files with 28 additions and 28 deletions

View file

@ -1117,7 +1117,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 flag = ignore_flags.entry(task_source_name).or_insert(Default::default());
let mut flag = ignore_flags.entry(task_source_name).or_insert(Default::default());
let cancelled = mem::replace(&mut *flag, Default::default());
cancelled.store(true, Ordering::Relaxed);
}