mirror of
https://github.com/swc-project/swc.git
synced 2024-11-24 10:12:42 +03:00
chore(ci): Deny clippy warnings (#6126)
This commit is contained in:
parent
7c9cb80a52
commit
d6fd476721
2
.github/workflows/CI.yml
vendored
2
.github/workflows/CI.yml
vendored
@ -44,7 +44,7 @@ jobs:
|
||||
profile: minimal
|
||||
components: clippy
|
||||
|
||||
- run: cargo clippy --all
|
||||
- run: cargo clippy --all -- -D warnings
|
||||
|
||||
cargo-crev:
|
||||
name: Cargo crev
|
||||
|
@ -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,
|
||||
..
|
||||
|
@ -1,3 +1,5 @@
|
||||
#![allow(clippy::match_like_matches_macro)]
|
||||
|
||||
use core::f64::consts::PI;
|
||||
use std::mem::take;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user