Auto merge of #25896 - iulianR:issue-25889, r=paulrouget

Remove unnecessary .clone() calls

<!-- Please describe your changes on the following line: -->

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #25889 (GitHub issue number if applicable)

<!-- Either: -->
- [ ] There are tests for these changes OR
- [ ] These changes do not require tests because ___

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
This commit is contained in:
bors-servo 2020-03-05 04:11:38 -05:00 committed by GitHub
commit d5724ccbf4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -344,7 +344,7 @@ impl LayoutThreadFactory for LayoutThread {
background_hang_monitor, background_hang_monitor,
constellation_chan, constellation_chan,
script_chan, script_chan,
image_cache.clone(), image_cache,
font_cache_thread, font_cache_thread,
time_profiler_chan, time_profiler_chan,
mem_profiler_chan.clone(), mem_profiler_chan.clone(),
@ -560,13 +560,13 @@ impl LayoutThread {
is_iframe: is_iframe, is_iframe: is_iframe,
port: port, port: port,
pipeline_port: pipeline_receiver, pipeline_port: pipeline_receiver,
script_chan: script_chan.clone(), script_chan: script_chan,
background_hang_monitor, background_hang_monitor,
constellation_chan: constellation_chan.clone(), constellation_chan: constellation_chan.clone(),
time_profiler_chan: time_profiler_chan, time_profiler_chan: time_profiler_chan,
mem_profiler_chan: mem_profiler_chan, mem_profiler_chan: mem_profiler_chan,
registered_painters: RegisteredPaintersImpl(Default::default()), registered_painters: RegisteredPaintersImpl(Default::default()),
image_cache: image_cache.clone(), image_cache: image_cache,
font_cache_thread: font_cache_thread, font_cache_thread: font_cache_thread,
first_reflow: Cell::new(true), first_reflow: Cell::new(true),
font_cache_receiver: font_cache_receiver, font_cache_receiver: font_cache_receiver,
@ -939,8 +939,8 @@ impl LayoutThread {
info.pipeline_port, info.pipeline_port,
info.background_hang_monitor_register, info.background_hang_monitor_register,
info.constellation_chan, info.constellation_chan,
info.script_chan.clone(), info.script_chan,
info.image_cache.clone(), info.image_cache,
self.font_cache_thread.clone(), self.font_cache_thread.clone(),
self.time_profiler_chan.clone(), self.time_profiler_chan.clone(),
self.mem_profiler_chan.clone(), self.mem_profiler_chan.clone(),