Skip to content

Commit

Permalink
Deny clippy warnings in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
djc committed May 16, 2022
1 parent 029c097 commit 6cadc14
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,27 @@ jobs:
cargo check --all-features
cargo check --no-default-features --features async-std-comp
- name: Check format
if: ${{ matrix.rust == 'stable' }}
run: make style-check
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v1
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-targets -- -D warnings
- name: doc
run: cargo doc --no-deps --document-private-items
env:
RUSTDOCFLAGS: -Dwarnings

0 comments on commit 6cadc14

Please sign in to comment.