Skip to content

Commit

Permalink
fix: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Nov 15, 2022
1 parent c3eda8f commit 6bd2d74
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions crates/swc_html_minifier/src/lib.rs
Expand Up @@ -611,10 +611,7 @@ impl Minifier<'_> {
fn is_type_text_css(&self, value: &JsWord) -> bool {
let value = value.trim().to_ascii_lowercase();

match &*value {
"text/css" => true,
_ => false,
}
matches!(&*value, "text/css")
}

fn is_default_attribute_value(&self, element: &Element, attribute: &Attribute) -> bool {
Expand Down

0 comments on commit 6bd2d74

Please sign in to comment.