Skip to content

Commit

Permalink
Remove unnecessary .clone() calls
Browse files Browse the repository at this point in the history
  • Loading branch information
iulianR committed Mar 4, 2020
1 parent 61cf25c commit 68c40da
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions components/layout_thread/lib.rs
Expand Up @@ -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(),
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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(),
Expand Down

0 comments on commit 68c40da

Please sign in to comment.