diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index d1c68ef9200..fb5c24f57f9 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -44,7 +44,7 @@ jobs: profile: minimal components: clippy - - run: cargo clippy --all + - run: cargo clippy --all -- -D warnings cargo-crev: name: Cargo crev diff --git a/crates/swc_css_minifier/src/compressor/selector.rs b/crates/swc_css_minifier/src/compressor/selector.rs index 2e85da657b4..e6675e06cf4 100644 --- a/crates/swc_css_minifier/src/compressor/selector.rs +++ b/crates/swc_css_minifier/src/compressor/selector.rs @@ -77,7 +77,6 @@ impl Compressor { AnPlusB::AnPlusBNotation(AnPlusBNotation { a: Some(a), b, - b_raw, span, .. }) if *a == 0 => { @@ -92,7 +91,6 @@ impl Compressor { // `-5n+0` => `-5n`, etc AnPlusB::AnPlusBNotation(AnPlusBNotation { a, - a_raw, b: Some(b), span, .. diff --git a/crates/swc_css_prefixer/src/prefixer.rs b/crates/swc_css_prefixer/src/prefixer.rs index 12511c4cb3f..1cfe9c90645 100644 --- a/crates/swc_css_prefixer/src/prefixer.rs +++ b/crates/swc_css_prefixer/src/prefixer.rs @@ -1,3 +1,5 @@ +#![allow(clippy::match_like_matches_macro)] + use core::f64::consts::PI; use std::mem::take;