diff options
Diffstat (limited to 'components/script/task_source/file_reading.rs')
-rw-r--r-- | components/script/task_source/file_reading.rs | 3 |
1 files changed, 1 insertions, 2 deletions
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()) } } |