Remove unnecessary .clone() calls

This commit is contained in:
Iulian Gabriel Radu 2020-03-04 20:09:56 +02:00
parent 61cf25c98a
commit 68c40da64a

View file

@ -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(),