mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
clippy: Fix needless_lifetimes warnings (#31933)
This commit is contained in:
parent
a8976ff00a
commit
4a68243f65
13 changed files with 32 additions and 32 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue