aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlcollection.rs
diff options
context:
space:
mode:
authorAarya Khandelwal <119049564+Aaryakhandelwal@users.noreply.github.com>2024-03-23 18:18:49 +0530
committerGitHub <noreply@github.com>2024-03-23 12:48:49 +0000
commit566fd475d92a6e11f70af18171a2f8bf9b80da68 (patch)
treec7787915847562b661c9486d151d213881667013 /components/script/dom/htmlcollection.rs
parent3c05b58221a2b5c879d31d355087a905de6494d8 (diff)
downloadservo-566fd475d92a6e11f70af18171a2f8bf9b80da68.tar.gz
servo-566fd475d92a6e11f70af18171a2f8bf9b80da68.zip
Clippy: Fixed some clippy warnings (#31818)
* Fixed clippy warnings * made changes for lowercase characters. * changed is_lowercase() to is_ascii_lowercase() * added std library function `is_ascii_uppercase()` and `is_ascii_lowercase()` * made recommended changes
Diffstat (limited to 'components/script/dom/htmlcollection.rs')
-rw-r--r--components/script/dom/htmlcollection.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/htmlcollection.rs b/components/script/dom/htmlcollection.rs
index 5a01e5be773..cfcc8b5f2ef 100644
--- a/components/script/dom/htmlcollection.rs
+++ b/components/script/dom/htmlcollection.rs
@@ -195,7 +195,7 @@ impl HTMLCollection {
None => elem.local_name() == qualified_name,
Some(prefix) => {
qualified_name.starts_with(&**prefix) &&
- qualified_name.find(":") == Some(prefix.len()) &&
+ qualified_name.find(':') == Some(prefix.len()) &&
qualified_name.ends_with(&**elem.local_name())
},
}
@@ -295,7 +295,7 @@ impl HTMLCollection {
.filter(move |element| self.filter.filter(element, &self.root))
}
- pub fn elements_iter<'a>(&'a self) -> impl Iterator<Item = DomRoot<Element>> + 'a {
+ pub fn elements_iter(&self) -> impl Iterator<Item = DomRoot<Element>> + '_ {
// Iterate forwards from the root.
self.elements_iter_after(&self.root)
}