mirror of
https://github.com/servo/servo.git
synced 2025-07-22 06:43:40 +01:00
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:
parent
1c8c287f01
commit
072b892706
4 changed files with 14 additions and 14 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue