From 924ed531e49b370502be6666a4f7b1aeda199c76 Mon Sep 17 00:00:00 2001 From: xtqqczze <45661989+xtqqczze@users.noreply.github.com> Date: Sat, 25 Jul 2026 11:52:27 +0100 Subject: [PATCH] ci: update configuration for Clippy --- .github/workflows/ci.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8b3aa4b..98fd1e1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,7 +41,11 @@ jobs: with: toolchain: ${{ matrix.rust }} components: clippy - - run: cargo clippy -- -D warnings + # Benches are not supported by the MSRV. + - if: ${{ !(matrix.rust == 'stable' || matrix.rust == 'nightly') }} + run: cargo clippy --exclude num-prime-bench --workspace --all-targets --all-features -- -D warnings + - if: matrix.rust == 'stable' || matrix.rust == 'nightly' + run: cargo clippy --workspace --all-targets --all-features -- -D warnings rustfmt: runs-on: ${{ matrix.os }}