mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Auto merge of #6444 - Ms2ger:clone, r=saneyuki
Remove some unnecessary clones. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6444) <!-- Reviewable:end -->
This commit is contained in:
commit
c6ca389d54
1 changed files with 2 additions and 2 deletions
|
@ -124,7 +124,7 @@ impl Browser {
|
||||||
let compositor = CompositorTask::create(window,
|
let compositor = CompositorTask::create(window,
|
||||||
compositor_proxy,
|
compositor_proxy,
|
||||||
compositor_receiver,
|
compositor_receiver,
|
||||||
constellation_chan.clone(),
|
constellation_chan,
|
||||||
time_profiler_chan,
|
time_profiler_chan,
|
||||||
mem_profiler_chan);
|
mem_profiler_chan);
|
||||||
|
|
||||||
|
@ -182,7 +182,7 @@ fn create_constellation(opts: opts::Opts,
|
||||||
match opts.url {
|
match opts.url {
|
||||||
Some(url) => {
|
Some(url) => {
|
||||||
let ConstellationChan(ref chan) = constellation_chan;
|
let ConstellationChan(ref chan) = constellation_chan;
|
||||||
chan.send(ConstellationMsg::InitLoadUrl(url.clone())).unwrap();
|
chan.send(ConstellationMsg::InitLoadUrl(url)).unwrap();
|
||||||
},
|
},
|
||||||
None => ()
|
None => ()
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue