[rs] Fix all the clippy lints and add clippy/fmt CI

This commit is contained in:
Aron Granberg committed 2021-03-17 14:40:25 +01:00
1 parent aa45e7668b
commit 162fe18e7d
14 files changed
+54 -41

No files matched your search

+20
View File
@@ -43,3 +43,23 @@ jobs:
- name: cargo doc
run: cargo --version; cargo doc --lib --no-deps
continue-on-error: true
lint:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- run: rustup component add clippy
- uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings
- uses: actions-rs/cargo@v1
with:
command: fmt
args: -- --check