From 1c78f097165436d043f48b9f6183501f84ff965f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maja=20K=C4=85dzio=C5=82ka?= Date: Fri, 7 Jun 2024 16:08:10 +0200 Subject: [PATCH] Run clippy with only the declared syn features --- .github/workflows/rust.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 1d47596..1430b1c 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -21,7 +21,8 @@ jobs: toolchain: ${{ matrix.rust }} profile: minimal default: true - - run: cargo build + - uses: taiki-e/install-action@cargo-hack + - run: cargo hack build --feature-powerset - run: cargo test --all ${{ matrix.extra-test-opts }} clippy: runs-on: ubuntu-latest @@ -33,4 +34,5 @@ jobs: toolchain: nightly override: true components: clippy - - run: cargo clippy --all --all-targets -- -D warnings + - uses: taiki-e/install-action@cargo-hack + - run: cargo hack clippy --workspace -- -D warnings