aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/worker.rs
diff options
context:
space:
mode:
authorMs2ger <Ms2ger@gmail.com>2016-04-29 14:55:38 +0200
committerMs2ger <Ms2ger@gmail.com>2016-04-29 14:55:52 +0200
commit897be5f6eefeaf0620460215b340e8a5b2c0fc95 (patch)
tree1f27cbb03ca111530f13916634e15fae635bcfec /components/script/dom/worker.rs
parent207be7d2e23788197c175d7d0b5f172551251626 (diff)
downloadservo-897be5f6eefeaf0620460215b340e8a5b2c0fc95.tar.gz
servo-897be5f6eefeaf0620460215b340e8a5b2c0fc95.zip
Reduce channel cloning.
Diffstat (limited to 'components/script/dom/worker.rs')
-rw-r--r--components/script/dom/worker.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/worker.rs b/components/script/dom/worker.rs
index 0e31181a222..2590cfba5e7 100644
--- a/components/script/dom/worker.rs
+++ b/components/script/dom/worker.rs
@@ -75,8 +75,8 @@ impl Worker {
};
let resource_thread = global.resource_thread();
- let constellation_chan = global.constellation_chan();
- let scheduler_chan = global.scheduler_chan();
+ let constellation_chan = global.constellation_chan().clone();
+ let scheduler_chan = global.scheduler_chan().clone();
let (sender, receiver) = channel();
let closing = Arc::new(AtomicBool::new(false));
@@ -103,7 +103,7 @@ impl Worker {
let init = WorkerGlobalScopeInit {
resource_thread: resource_thread,
- mem_profiler_chan: global.mem_profiler_chan(),
+ mem_profiler_chan: global.mem_profiler_chan().clone(),
to_devtools_sender: global.devtools_chan(),
from_devtools_sender: optional_sender,
constellation_chan: constellation_chan,