aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/task_source/networking.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/task_source/networking.rs')
-rw-r--r--components/script/task_source/networking.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/components/script/task_source/networking.rs b/components/script/task_source/networking.rs
index 29a5997475e..83160468395 100644
--- a/components/script/task_source/networking.rs
+++ b/components/script/task_source/networking.rs
@@ -14,7 +14,6 @@ impl ScriptChan for NetworkingTaskSource {
}
fn clone(&self) -> Box<ScriptChan + Send> {
- let ref chan = self.0;
- box NetworkingTaskSource((*chan).clone())
+ box NetworkingTaskSource((&self.0).clone())
}
}