Skip to content

Commit

Permalink
chore: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
togami2864 committed Sep 30, 2024
1 parent 2dc75ae commit b99d9ad
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,13 @@ impl Visitor for NoDeclarationBlockShorthandPropertyOverridesVisitor {
let prop_lowercase = prop.to_lowercase();

let prop_prefix = vender_prefix(&prop_lowercase);
let unprefixed_prop = remove_vendor_prefix(&prop_lowercase, &prop_prefix);
let override_props = get_override_props(&unprefixed_prop);
let unprefixed_prop = remove_vendor_prefix(&prop_lowercase, prop_prefix);
let override_props = get_override_props(unprefixed_prop);

self.prior_props_in_block.iter().for_each(|prior_prop| {
let prior_prop_prefix = vender_prefix(&prior_prop.lowercase);
let unprefixed_prior_prop =
remove_vendor_prefix(&prior_prop.lowercase, &prior_prop_prefix);
remove_vendor_prefix(&prior_prop.lowercase, prior_prop_prefix);

if prop_prefix == prior_prop_prefix
&& override_props.binary_search(&unprefixed_prior_prop).is_ok()
Expand Down

0 comments on commit b99d9ad

Please sign in to comment.