From 1c64eaca4d2b8b0c563414e21b0e4967ab8c6d17 Mon Sep 17 00:00:00 2001 From: Alex Stokes Date: Mon, 27 Feb 2023 18:17:07 -0700 Subject: [PATCH] downgrade `clippy` to stable until https://github.com/clap-rs/clap/issues/4733 is fixed --- .github/workflows/ci.yml | 6 ++++-- justfile | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2c028a2c..8fa66c71 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -51,7 +51,7 @@ jobs: - name: Install toolchain uses: dtolnay/rust-toolchain@nightly with: - components: rustfmt, clippy + components: rustfmt - name: Rust cache uses: Swatinem/rust-cache@v2 @@ -62,4 +62,6 @@ jobs: run: cargo +nightly fmt --all --check - name: Check clippy - run: cargo +nightly clippy --all-targets --all-features --all --verbose -- -D warnings + # TODO restore +nightly after fixing this: https://github.com/clap-rs/clap/issues/4733 + run: rustup component add clippy # --toolchain 1.67-x86_64-unknown-linux-gnu + run: cargo clippy --all-targets --all-features --all --verbose -- -D warnings diff --git a/justfile b/justfile index a8499f89..01d5d878 100644 --- a/justfile +++ b/justfile @@ -15,7 +15,8 @@ test: fmt: cargo +nightly fmt --all lint: fmt validate-example-config - cargo +nightly clippy --all-targets --all-features --all + # TODO restore +nightly after fixing this: https://github.com/clap-rs/clap/issues/4733 + cargo clippy --all-targets --all-features --all build: cargo build --all-targets --all-features --all run-ci: lint build test run-integration-tests