Add clippy (#191)
* Organize imports Use rustfmt to organize imports. Resolve #162 * remove unused imports * Fix clippy complaints * add clippy github action * remove comment for @arnaucube
This commit is contained in:
parent
24ff82dd3d
commit
0759d6e165
27 changed files with 217 additions and 339 deletions
21
.github/workflows/clippy.yml
vendored
Normal file
21
.github/workflows/clippy.yml
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
name: Clippy Check
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches: [ main ]
|
||||
types: [ready_for_review, opened, synchronize, reopened]
|
||||
push:
|
||||
branches: [ main ]
|
||||
|
||||
jobs:
|
||||
rustfmt:
|
||||
if: github.event.pull_request.draft == false
|
||||
name: Rust formatting
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||
with:
|
||||
components: clippy
|
||||
- name: Check lints with clippy
|
||||
run: cargo clippy
|
||||
Loading…
Add table
Add a link
Reference in a new issue