aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/workerglobalscope.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/workerglobalscope.rs')
-rw-r--r--components/script/dom/workerglobalscope.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/components/script/dom/workerglobalscope.rs b/components/script/dom/workerglobalscope.rs
index dc097cd602c..fbfd6a1a8bc 100644
--- a/components/script/dom/workerglobalscope.rs
+++ b/components/script/dom/workerglobalscope.rs
@@ -126,8 +126,8 @@ impl WorkerGlobalScope {
}
}
- pub fn mem_profiler_chan(&self) -> mem::ProfilerChan {
- self.mem_profiler_chan.clone()
+ pub fn mem_profiler_chan(&self) -> &mem::ProfilerChan {
+ &self.mem_profiler_chan
}
pub fn devtools_chan(&self) -> Option<IpcSender<ScriptToDevtoolsControlMsg>> {
@@ -142,12 +142,12 @@ impl WorkerGlobalScope {
&self.from_devtools_receiver
}
- pub fn constellation_chan(&self) -> ConstellationChan<ConstellationMsg> {
- self.constellation_chan.clone()
+ pub fn constellation_chan(&self) -> &ConstellationChan<ConstellationMsg> {
+ &self.constellation_chan
}
- pub fn scheduler_chan(&self) -> IpcSender<TimerEventRequest> {
- self.scheduler_chan.clone()
+ pub fn scheduler_chan(&self) -> &IpcSender<TimerEventRequest> {
+ &self.scheduler_chan
}
pub fn schedule_callback(&self, callback: OneshotTimerCallback, duration: MsDuration) -> OneshotTimerHandle {