aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIulian Gabriel Radu <iulian.radu67@gmail.com>2020-03-04 20:09:56 +0200
committerIulian Gabriel Radu <iulian.radu67@gmail.com>2020-03-04 20:09:56 +0200
commit68c40da64a9565335d4958fb3b52d39874ce5f3d (patch)
treeac07929eb266402926f11c776b4c84eb10498cf5
parent61cf25c98ae73f5c1d9c7fac7dd02f83dbfeb703 (diff)
downloadservo-68c40da64a9565335d4958fb3b52d39874ce5f3d.tar.gz
servo-68c40da64a9565335d4958fb3b52d39874ce5f3d.zip
Remove unnecessary .clone() calls
-rw-r--r--components/layout_thread/lib.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/components/layout_thread/lib.rs b/components/layout_thread/lib.rs
index 127eab08914..60710009ff5 100644
--- a/components/layout_thread/lib.rs
+++ b/components/layout_thread/lib.rs
@@ -344,7 +344,7 @@ impl LayoutThreadFactory for LayoutThread {
background_hang_monitor,
constellation_chan,
script_chan,
- image_cache.clone(),
+ image_cache,
font_cache_thread,
time_profiler_chan,
mem_profiler_chan.clone(),
@@ -560,13 +560,13 @@ impl LayoutThread {
is_iframe: is_iframe,
port: port,
pipeline_port: pipeline_receiver,
- script_chan: script_chan.clone(),
+ script_chan: script_chan,
background_hang_monitor,
constellation_chan: constellation_chan.clone(),
time_profiler_chan: time_profiler_chan,
mem_profiler_chan: mem_profiler_chan,
registered_painters: RegisteredPaintersImpl(Default::default()),
- image_cache: image_cache.clone(),
+ image_cache: image_cache,
font_cache_thread: font_cache_thread,
first_reflow: Cell::new(true),
font_cache_receiver: font_cache_receiver,
@@ -939,8 +939,8 @@ impl LayoutThread {
info.pipeline_port,
info.background_hang_monitor_register,
info.constellation_chan,
- info.script_chan.clone(),
- info.image_cache.clone(),
+ info.script_chan,
+ info.image_cache,
self.font_cache_thread.clone(),
self.time_profiler_chan.clone(),
self.mem_profiler_chan.clone(),