mirror of
https://github.com/servo/servo.git
synced 2025-06-13 02:44:29 +00:00
clippy: Fix dereferencing a tuple pattern warnings (#31811)
This commit is contained in:
parent
b22281d94f
commit
694e86ecff
14 changed files with 29 additions and 37 deletions
|
@ -359,7 +359,7 @@ impl HTMLSelectElementMethods for HTMLSelectElement {
|
|||
fn SelectedIndex(&self) -> i32 {
|
||||
self.list_of_options()
|
||||
.enumerate()
|
||||
.filter(|&(_, ref opt_elem)| opt_elem.Selected())
|
||||
.filter(|(_, opt_elem)| opt_elem.Selected())
|
||||
.map(|(i, _)| i as i32)
|
||||
.next()
|
||||
.unwrap_or(-1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue