mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Fix warnings: Use Vec.extend_from_slice instead of Vec.push_all
This commit is contained in:
parent
b756375637
commit
e8c12c1c6d
17 changed files with 23 additions and 30 deletions
|
@ -1433,9 +1433,9 @@ impl<LTF: LayoutTaskFactory, STF: ScriptTaskFactory> Constellation<LTF, STF> {
|
|||
let mut pipelines_to_close = vec!();
|
||||
|
||||
let frame = self.frame(frame_id);
|
||||
pipelines_to_close.push_all(&frame.next);
|
||||
pipelines_to_close.extend_from_slice(&frame.next);
|
||||
pipelines_to_close.push(frame.current);
|
||||
pipelines_to_close.push_all(&frame.prev);
|
||||
pipelines_to_close.extend_from_slice(&frame.prev);
|
||||
|
||||
pipelines_to_close
|
||||
};
|
||||
|
@ -1462,7 +1462,7 @@ impl<LTF: LayoutTaskFactory, STF: ScriptTaskFactory> Constellation<LTF, STF> {
|
|||
let mut frames_to_close = vec!();
|
||||
|
||||
let pipeline = self.pipeline(pipeline_id);
|
||||
frames_to_close.push_all(&pipeline.children);
|
||||
frames_to_close.extend_from_slice(&pipeline.children);
|
||||
|
||||
frames_to_close
|
||||
};
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
#![feature(iter_cmp)]
|
||||
#![feature(plugin)]
|
||||
#![feature(slice_bytes)]
|
||||
#![feature(vec_push_all)]
|
||||
#![feature(mpsc_select)]
|
||||
#![feature(plugin)]
|
||||
#![plugin(plugins)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue