enable clippy and make it to fail CI on warnings.

This should improve overall code quality and reduce guess work
I typically do, being used to running `clippy` on my other projects.
This commit is contained in:
Sebastian Thiel
2022-10-20 11:03:56 +08:00
parent 852bd70ecb
commit d9fea508ea

View File

@@ -7,6 +7,14 @@ on:
branches: [main]
jobs:
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: Swatinem/rust-cache@v2
- name: Run clippy
run: |
cargo clippy -- -D warnings
build-and-test:
runs-on: ubuntu-latest
env: