Skip to content

Commit 1c78f09

Browse files
committed
Run clippy with only the declared syn features
1 parent 561fe5e commit 1c78f09

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/rust.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ jobs:
2121
toolchain: ${{ matrix.rust }}
2222
profile: minimal
2323
default: true
24-
- run: cargo build
24+
- uses: taiki-e/install-action@cargo-hack
25+
- run: cargo hack build --feature-powerset
2526
- run: cargo test --all ${{ matrix.extra-test-opts }}
2627
clippy:
2728
runs-on: ubuntu-latest
@@ -33,4 +34,5 @@ jobs:
3334
toolchain: nightly
3435
override: true
3536
components: clippy
36-
- run: cargo clippy --all --all-targets -- -D warnings
37+
- uses: taiki-e/install-action@cargo-hack
38+
- run: cargo hack clippy --workspace -- -D warnings

0 commit comments

Comments
 (0)