Remove some clones.

This commit is contained in:
Ms2ger 2015-05-15 17:52:53 +02:00
parent 09f5648153
commit 0067cb2101
2 changed files with 5 additions and 5 deletions

View file

@ -231,14 +231,14 @@ impl CompositorTask {
box compositor::IOCompositor::create(window,
sender,
receiver,
constellation_chan.clone(),
constellation_chan,
time_profiler_chan,
mem_profiler_chan)
as Box<CompositorEventListener>
}
None => {
box headless::NullCompositor::create(receiver,
constellation_chan.clone(),
constellation_chan,
time_profiler_chan,
mem_profiler_chan)
as Box<CompositorEventListener>

View file

@ -158,12 +158,12 @@ fn create_constellation(opts: opts::Opts,
let constellation_chan = Constellation::<layout::layout_task::LayoutTask,
script::script_task::ScriptTask>::start(
compositor_proxy.clone_compositor_proxy(),
compositor_proxy,
resource_task,
image_cache_task,
font_cache_task,
time_profiler_chan.clone(),
mem_profiler_chan.clone(),
time_profiler_chan,
mem_profiler_chan,
devtools_chan,
storage_task);