clippy:fix various clippy problems in components/scripts (#31907)

* manual implementation of an assign operation

* manual implementation of an assign operation

* single-character string

* manual cjheck for common ascii range
This commit is contained in:
Rosemary Ajayi 2024-03-27 22:14:41 +00:00 committed by GitHub
parent 1c8c287f01
commit 072b892706
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 14 additions and 14 deletions

View file

@ -361,8 +361,8 @@ lazy_static! {
enabled_longhands.sort_unstable_by(|a, b| {
let a = a.name();
let b = b.name();
let is_a_vendor_prefixed = a.starts_with("-");
let is_b_vendor_prefixed = b.starts_with("-");
let is_a_vendor_prefixed = a.starts_with('-');
let is_b_vendor_prefixed = b.starts_with('-');
if is_a_vendor_prefixed == is_b_vendor_prefixed {
a.partial_cmp(b).unwrap()
} else if is_b_vendor_prefixed {