mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Remove some clones.
This commit is contained in:
parent
09f5648153
commit
0067cb2101
2 changed files with 5 additions and 5 deletions
|
@ -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>
|
||||||
|
|
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue