diff options
Diffstat (limited to 'components/script/task_source')
-rw-r--r-- | components/script/task_source/dom_manipulation.rs | 3 | ||||
-rw-r--r-- | components/script/task_source/file_reading.rs | 3 | ||||
-rw-r--r-- | components/script/task_source/history_traversal.rs | 3 | ||||
-rw-r--r-- | components/script/task_source/networking.rs | 3 | ||||
-rw-r--r-- | components/script/task_source/user_interaction.rs | 3 |
5 files changed, 5 insertions, 10 deletions
diff --git a/components/script/task_source/dom_manipulation.rs b/components/script/task_source/dom_manipulation.rs index 84ec1ca5e78..9676ade6ded 100644 --- a/components/script/task_source/dom_manipulation.rs +++ b/components/script/task_source/dom_manipulation.rs @@ -20,8 +20,7 @@ impl TaskSource<DOMManipulationTask> for DOMManipulationTaskSource { } fn clone(&self) -> Box<TaskSource<DOMManipulationTask> + Send> { - let ref chan = self.0; - box DOMManipulationTaskSource((*chan).clone()) + box DOMManipulationTaskSource((&self.0).clone()) } } diff --git a/components/script/task_source/file_reading.rs b/components/script/task_source/file_reading.rs index a9813167e34..30e9530a76d 100644 --- a/components/script/task_source/file_reading.rs +++ b/components/script/task_source/file_reading.rs @@ -14,7 +14,6 @@ impl ScriptChan for FileReadingTaskSource { } fn clone(&self) -> Box<ScriptChan + Send> { - let ref chan = self.0; - box FileReadingTaskSource((*chan).clone()) + box FileReadingTaskSource((&self.0).clone()) } } diff --git a/components/script/task_source/history_traversal.rs b/components/script/task_source/history_traversal.rs index d4fb64864a3..c2d276e6eec 100644 --- a/components/script/task_source/history_traversal.rs +++ b/components/script/task_source/history_traversal.rs @@ -14,7 +14,6 @@ impl ScriptChan for HistoryTraversalTaskSource { } fn clone(&self) -> Box<ScriptChan + Send> { - let ref chan = self.0; - box HistoryTraversalTaskSource((*chan).clone()) + box HistoryTraversalTaskSource((&self.0).clone()) } } 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()) } } diff --git a/components/script/task_source/user_interaction.rs b/components/script/task_source/user_interaction.rs index a4a2549e63d..254b0d008d1 100644 --- a/components/script/task_source/user_interaction.rs +++ b/components/script/task_source/user_interaction.rs @@ -14,7 +14,6 @@ impl ScriptChan for UserInteractionTaskSource { } fn clone(&self) -> Box<ScriptChan + Send> { - let ref chan = self.0; - box UserInteractionTaskSource((*chan).clone()) + box UserInteractionTaskSource((&self.0).clone()) } } |