diff options
author | João Oliveira <hello@jxs.pt> | 2015-08-14 03:55:02 +0100 |
---|---|---|
committer | João Oliveira <hello@jxs.pt> | 2015-08-14 04:00:33 +0100 |
commit | 9c117818800b69f04f76e4f7afd92b2660752bae (patch) | |
tree | ba530ec7ba188dbca6d7e4fbe4422eea2b578537 /components/script/dom/node.rs | |
parent | f5e97ef1b54b7f85d9c5a55712e802dd70a89f8e (diff) | |
download | servo-9c117818800b69f04f76e4f7afd92b2660752bae.tar.gz servo-9c117818800b69f04f76e4f7afd92b2660752bae.zip |
replace .len() == 0 with is_empty()
closes #7198
Diffstat (limited to 'components/script/dom/node.rs')
-rw-r--r-- | components/script/dom/node.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/node.rs b/components/script/dom/node.rs index df815ef6b9d..ac5b6ac3401 100644 --- a/components/script/dom/node.rs +++ b/components/script/dom/node.rs @@ -2135,7 +2135,7 @@ impl<'a> NodeMethods for &'a Node { NodeTypeId::DocumentFragment | NodeTypeId::Element(..) => { // Step 1-2. - let node = if value.len() == 0 { + let node = if value.is_empty() { None } else { let document = self.owner_doc(); |