mirror of
https://github.com/servo/servo.git
synced 2025-08-14 09:55:35 +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
|
@ -92,12 +92,10 @@ impl StylePropertyMapReadOnlyMethods for StylePropertyMapReadOnly {
|
|||
} else {
|
||||
Ordering::Greater
|
||||
}
|
||||
} else if let Ok(_) = custom_properties::parse_name(key2) {
|
||||
Ordering::Less
|
||||
} else {
|
||||
if let Ok(_) = custom_properties::parse_name(key2) {
|
||||
Ordering::Less
|
||||
} else {
|
||||
key1.cmp(key2)
|
||||
}
|
||||
key1.cmp(key2)
|
||||
}
|
||||
});
|
||||
result
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue