mirror of
https://github.com/servo/servo.git
synced 2025-08-02 20:20:14 +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,
|
||||
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>
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue