From 23cedfa7ddfafd276c803b373fae27eea2c7bd45 Mon Sep 17 00:00:00 2001 From: Martin Hoffmann Date: Thu, 15 Sep 2022 12:43:58 +0200 Subject: [PATCH] Only run Clippy on stable Rust. --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5c03234c..96994c79 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,9 +15,9 @@ jobs: uses: hecrj/setup-rust-action@v1 with: rust-version: ${{ matrix.rust }} - - if: matrix.rust == 'stable' || matrix.rust == 'nightly' + - if: matrix.rust == 'stable' run: rustup component add clippy - - if: matrix.rust == 'stable' || matrix.rust == 'nightly' + - if: matrix.rust == 'stable' run: cargo clippy --all-features -- -D warnings - if: matrix.rust == 'stable' && matrix.os == 'ubuntu-latest' run: cargo fmt --all -- --check