mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
clippy: Fix filter_next warnings (#31965)
This commit is contained in:
parent
c7b73e1ef4
commit
0a40a800fd
4 changed files with 7 additions and 14 deletions
|
@ -170,8 +170,7 @@ impl HTMLLabelElement {
|
|||
self.upcast::<Node>()
|
||||
.traverse_preorder(ShadowIncluding::No)
|
||||
.filter_map(DomRoot::downcast::<HTMLElement>)
|
||||
.filter(|elem| elem.is_labelable_element())
|
||||
.next()
|
||||
.find(|elem| elem.is_labelable_element())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue