aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/node.rs
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno.d@partner.samsung.com>2014-10-31 11:17:08 -0400
committerBruno de Oliveira Abinader <bruno.d@partner.samsung.com>2014-10-31 11:17:08 -0400
commitd5d4d0bec44c0ec4db100ade498a14300873cadd (patch)
tree5361f70d67620ceb847370e2c0fe1c37620e3dba /components/script/dom/node.rs
parent11d2251b1efd03218fb48f6258fc0c2dc731078b (diff)
downloadservo-d5d4d0bec44c0ec4db100ade498a14300873cadd.tar.gz
servo-d5d4d0bec44c0ec4db100ade498a14300873cadd.zip
s/peek().is_some()/!is_empty()/
Diffstat (limited to 'components/script/dom/node.rs')
-rw-r--r--components/script/dom/node.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/node.rs b/components/script/dom/node.rs
index 326c080f22e..23041d58a7b 100644
--- a/components/script/dom/node.rs
+++ b/components/script/dom/node.rs
@@ -1260,7 +1260,7 @@ impl Node {
0 => (),
// Step 6.1.2
1 => {
- if parent.child_elements().peek().is_some() {
+ if !parent.child_elements().is_empty() {
return Err(HierarchyRequest);
}
match child {
@@ -1279,7 +1279,7 @@ impl Node {
},
// Step 6.2
ElementNodeTypeId(_) => {
- if parent.child_elements().peek().is_some() {
+ if !parent.child_elements().is_empty() {
return Err(HierarchyRequest);
}
match child {
@@ -1306,7 +1306,7 @@ impl Node {
}
},
None => {
- if parent.child_elements().peek().is_some() {
+ if !parent.child_elements().is_empty() {
return Err(HierarchyRequest);
}
},