Add a clippy job to the CI (#163)

* Add clippy CI check

* Fix remaining clippy lints

* Cargo fmt
This commit is contained in:
Alexander Theißen
2021-07-27 15:50:50 +02:00
committed by GitHub
parent b8e6b9e319
commit 72626a566a
6 changed files with 34 additions and 14 deletions
+19
View File
@@ -29,6 +29,25 @@ jobs:
command: fmt
args: --all -- --check
clippy:
runs-on: "ubuntu-latest"
steps:
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
components: clippy
- uses: actions/checkout@v2
- name: Cargo clippy
uses: actions-rs/cargo@v1
with:
toolchain: stable
command: clippy
args: --all-targets --all-features -- -D warnings
test:
strategy:
matrix: