From a146d4c9f79d679ed4cdbd386a21ddc60e244a3b Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Sun, 7 Jun 2015 18:13:39 +0200 Subject: [PATCH] Remove some unnecessary clones. --- components/servo/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/servo/lib.rs b/components/servo/lib.rs index 5842a0b2280..6f45a17578f 100644 --- a/components/servo/lib.rs +++ b/components/servo/lib.rs @@ -124,7 +124,7 @@ impl Browser { let compositor = CompositorTask::create(window, compositor_proxy, compositor_receiver, - constellation_chan.clone(), + constellation_chan, time_profiler_chan, mem_profiler_chan); @@ -182,7 +182,7 @@ fn create_constellation(opts: opts::Opts, match opts.url { Some(url) => { let ConstellationChan(ref chan) = constellation_chan; - chan.send(ConstellationMsg::InitLoadUrl(url.clone())).unwrap(); + chan.send(ConstellationMsg::InitLoadUrl(url)).unwrap(); }, None => () };