mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
clippy: Fix needless borrow warnings (#31813)
This commit is contained in:
parent
694e86ecff
commit
3e63f8d6ee
42 changed files with 151 additions and 157 deletions
|
@ -292,7 +292,7 @@ impl HTMLCollection {
|
|||
after
|
||||
.following_nodes(&self.root)
|
||||
.filter_map(DomRoot::downcast)
|
||||
.filter(move |element| self.filter.filter(&element, &self.root))
|
||||
.filter(move |element| self.filter.filter(element, &self.root))
|
||||
}
|
||||
|
||||
pub fn elements_iter<'a>(&'a self) -> impl Iterator<Item = DomRoot<Element>> + 'a {
|
||||
|
@ -308,7 +308,7 @@ impl HTMLCollection {
|
|||
before
|
||||
.preceding_nodes(&self.root)
|
||||
.filter_map(DomRoot::downcast)
|
||||
.filter(move |element| self.filter.filter(&element, &self.root))
|
||||
.filter(move |element| self.filter.filter(element, &self.root))
|
||||
}
|
||||
|
||||
pub fn root_node(&self) -> DomRoot<Node> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue