aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_thread.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/script_thread.rs')
-rw-r--r--components/script/script_thread.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs
index de3d6b5cae2..5876f7d16c9 100644
--- a/components/script/script_thread.rs
+++ b/components/script/script_thread.rs
@@ -325,8 +325,7 @@ impl ScriptChan for SendableMainThreadScriptChan {
}
fn clone(&self) -> Box<ScriptChan + Send> {
- let ref chan = self.0;
- box SendableMainThreadScriptChan((*chan).clone())
+ box SendableMainThreadScriptChan((&self.0).clone())
}
}
@@ -348,8 +347,7 @@ impl ScriptChan for MainThreadScriptChan {
}
fn clone(&self) -> Box<ScriptChan + Send> {
- let ref chan = self.0;
- box MainThreadScriptChan((*chan).clone())
+ box MainThreadScriptChan((&self.0).clone())
}
}