diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2017-09-20 10:37:09 +0200 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2017-09-20 10:37:09 +0200 |
commit | 6c9fb5ae7a4eb6cff38de3bb6446af304a32bc8a (patch) | |
tree | 63a8bd729171e5886340fe89774f2287bd11cb5b /components/script/dom/storage.rs | |
parent | 52527d6f9dfaae13458059243d975f5336bdead4 (diff) | |
download | servo-6c9fb5ae7a4eb6cff38de3bb6446af304a32bc8a.tar.gz servo-6c9fb5ae7a4eb6cff38de3bb6446af304a32bc8a.zip |
Introduce TaskOnce
Having both TaskBox and TaskOnce allows us to remove the superfluous inner boxing
from CancellableTask<T>.
Diffstat (limited to 'components/script/dom/storage.rs')
-rw-r--r-- | components/script/dom/storage.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/storage.rs b/components/script/dom/storage.rs index 3dbada1b334..e7b948e46d6 100644 --- a/components/script/dom/storage.rs +++ b/components/script/dom/storage.rs @@ -167,7 +167,7 @@ impl Storage { let global = self.global(); let this = Trusted::new(self); global.as_window().dom_manipulation_task_source().queue( - box task!(send_storage_notification: move || { + task!(send_storage_notification: move || { let this = this.root(); let global = this.global(); let event = StorageEvent::new( |