chore: add lint

This commit is contained in:
lencx
2023-01-22 14:46:04 +08:00
parent b875727753
commit 1d7bb3e051
7 changed files with 63 additions and 12 deletions

14
.github/workflows/clippy.yml vendored Normal file
View File

@@ -0,0 +1,14 @@
on: push
name: Clippy check
# Make sure CI fails on all warnings, including Clippy lints
env:
RUSTFLAGS: "-Dwarnings"
jobs:
clippy_check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run Clippy
run: cargo clippy --all-targets --all-features