mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
clippy: Fix collapsible_else_if warnings (#31853)
This commit is contained in:
parent
d814d05539
commit
f8a2eaea47
8 changed files with 37 additions and 52 deletions
|
@ -167,11 +167,9 @@ impl HTMLSelectElement {
|
|||
|
||||
if let Some(last_selected) = last_selected {
|
||||
last_selected.set_selectedness(true);
|
||||
} else {
|
||||
if self.display_size() == 1 {
|
||||
if let Some(first_enabled) = first_enabled {
|
||||
first_enabled.set_selectedness(true);
|
||||
}
|
||||
} else if self.display_size() == 1 {
|
||||
if let Some(first_enabled) = first_enabled {
|
||||
first_enabled.set_selectedness(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue