From 5b190d62e08a6cf04ec8029c6e20ba30fe7e59e4 Mon Sep 17 00:00:00 2001 From: Mahmoud Mazouz Date: Mon, 26 Feb 2024 18:05:27 +0100 Subject: [PATCH] fix: Use clippy from Stable Rust in CI and Release workflows --- .github/workflows/ci.yml | 6 +++--- .github/workflows/release.yml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f87077b516..51efbf1fd8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -47,14 +47,14 @@ jobs: run: cargo fmt --check - name: Clippy - run: cargo clippy --all-targets -- --deny warnings + run: cargo +stable clippy --all-targets -- --deny warnings - name: Clippy unstable targets - run: cargo clippy --all-targets --features unstable -- --deny warnings + run: cargo +stable clippy --all-targets --features unstable -- --deny warnings - name: Clippy all features if: ${{ matrix.os == 'ubuntu-latest' || matrix.os == 'macOS-latest' }} - run: cargo clippy --all-targets --all-features -- --deny warnings + run: cargo +stable clippy --all-targets --all-features -- --deny warnings - name: Install generic no_std target # Generic no_std target architecture is x86_64-unknown-none diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d8bd218ae8..982a474956 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -72,13 +72,13 @@ jobs: CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse - name: Clippy check - run: cargo clippy --all-targets --features=${{ github.event.inputs.features}} -- --deny warnings + run: cargo +stable clippy --all-targets --features=${{ github.event.inputs.features}} -- --deny warnings - name: Clippy unstable check - run: cargo clippy --all-targets -- --deny warnings + run: cargo +stable clippy --all-targets -- --deny warnings - name: Clippy all features - run: cargo clippy --all-targets --all-features -- --deny warnings + run: cargo +stable clippy --all-targets --all-features -- --deny warnings - name: Environment setup id: env