aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/stylesheet_loader.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/stylesheet_loader.rs')
-rw-r--r--components/script/stylesheet_loader.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/stylesheet_loader.rs b/components/script/stylesheet_loader.rs
index e789d32e7b0..3444cb0af02 100644
--- a/components/script/stylesheet_loader.rs
+++ b/components/script/stylesheet_loader.rs
@@ -231,9 +231,9 @@ impl<'a> StylesheetLoader<'a> {
task_source: document.window().networking_task_source(),
canceller: Some(document.window().task_canceller())
};
- ROUTER.add_route(action_receiver.to_opaque(), box move |message| {
+ ROUTER.add_route(action_receiver.to_opaque(), Box::new(move |message| {
listener.notify_fetch(message.to().unwrap());
- });
+ }));
let owner = self.elem.upcast::<Element>().as_stylesheet_owner()