mirror of
https://github.com/servo/servo.git
synced 2025-09-30 08:39:16 +01:00
clippy: fixed various clippy warnings in components/scripts
(#31960)
* fixed various clippy warnings * fixed various clippy warnings * fixed various clippy warnings * fixed various clippy warnings
This commit is contained in:
parent
fd8235e409
commit
2f5a4354e7
7 changed files with 7 additions and 7 deletions
|
@ -92,7 +92,7 @@ impl StylePropertyMapReadOnlyMethods for StylePropertyMapReadOnly {
|
|||
} else {
|
||||
Ordering::Greater
|
||||
}
|
||||
} else if let Ok(_) = custom_properties::parse_name(key2) {
|
||||
} else if custom_properties::parse_name(key2).is_ok() {
|
||||
Ordering::Less
|
||||
} else {
|
||||
key1.cmp(key2)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue