Skip to content

Commit 9235d02

Browse files
committed
Deny unused-crate-dependencies in ci workflow
1 parent 6feab26 commit 9235d02

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ jobs:
2323
run: cargo fmt --all -- --check
2424
build:
2525
runs-on: ubuntu-latest
26+
env:
27+
RUSTFLAGS: -Dunused-crate-dependencies
2628
steps:
2729
- uses: actions/checkout@v2
2830
- uses: Swatinem/rust-cache@v1

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ lint:
1212
cargo clippy --all-features --no-deps -- -D clippy::all
1313

1414
build:
15-
cargo build-all-features
15+
RUSTFLAGS=-Dunused-crate-dependencies cargo build-all-features
1616

1717
test:
1818
cargo test --all-features

0 commit comments

Comments
 (0)