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:
Rosemary Ajayi 2024-04-01 08:25:42 +00:00 committed by GitHub
parent fd8235e409
commit 2f5a4354e7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 7 additions and 7 deletions

View file

@ -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)