mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
~[] to Vec in script/dom/node.rs
This commit is contained in:
parent
b88c84dde8
commit
58bbe651a0
1 changed files with 1 additions and 1 deletions
|
@ -1141,7 +1141,7 @@ impl Node {
|
||||||
|
|
||||||
// Step 3.
|
// Step 3.
|
||||||
let addedNodes = match node {
|
let addedNodes = match node {
|
||||||
None => vec!(),
|
None => Vec::new(),
|
||||||
Some(ref node) => match node.type_id() {
|
Some(ref node) => match node.type_id() {
|
||||||
DocumentFragmentNodeTypeId => node.children().collect(),
|
DocumentFragmentNodeTypeId => node.children().collect(),
|
||||||
_ => vec!(node.clone()),
|
_ => vec!(node.clone()),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue