clippy: Fix needless_lifetimes warnings (#31933)

This commit is contained in:
Oluwatobi Sofela 2024-03-29 12:59:07 +01:00 committed by GitHub
parent a8976ff00a
commit 4a68243f65
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 32 additions and 32 deletions

View file

@ -138,7 +138,7 @@ impl NodeList {
}
}
pub fn iter<'a>(&'a self) -> impl Iterator<Item = DomRoot<Node>> + 'a {
pub fn iter(&self) -> impl Iterator<Item = DomRoot<Node>> + '_ {
let len = self.Length();
// There is room for optimization here in non-simple cases,
// as calling Item repeatedly on a live list can involve redundant work.