diff options
author | Matt Murphy <matthew.john.murphy@gmail.com> | 2014-04-27 10:09:58 -0500 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2014-05-04 23:16:17 +0200 |
commit | 58bbe651a02a3bf0933ce0a42488e0ad6a3827fa (patch) | |
tree | e7c127854557c9d583e19599ea31c93445fe4b1a /src/components/script/dom | |
parent | b88c84dde82618dc2da0d1bba8bbb1521cffd7d8 (diff) | |
download | servo-58bbe651a02a3bf0933ce0a42488e0ad6a3827fa.tar.gz servo-58bbe651a02a3bf0933ce0a42488e0ad6a3827fa.zip |
~[] to Vec in script/dom/node.rs
Diffstat (limited to 'src/components/script/dom')
-rw-r--r-- | src/components/script/dom/node.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/script/dom/node.rs b/src/components/script/dom/node.rs index e9f41a8df44..2dc39c7e50c 100644 --- a/src/components/script/dom/node.rs +++ b/src/components/script/dom/node.rs @@ -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()), |