Auto merge of #6070 - Ms2ger:clone, r=jdm

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6070)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2015-05-15 12:15:39 -05:00
commit 0898620902
2 changed files with 5 additions and 5 deletions

View file

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

View file

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