mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +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.
|
||||
let addedNodes = match node {
|
||||
None => vec!(),
|
||||
None => Vec::new(),
|
||||
Some(ref node) => match node.type_id() {
|
||||
DocumentFragmentNodeTypeId => node.children().collect(),
|
||||
_ => vec!(node.clone()),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue