style: fix clippy warnings and add clippy check to CI (#321)

* style: fix clippy warnings and add clippy check to CI

Runs `cargo clippy --all-targets -- -D warnings` in the rust_crate CI
action to catch lint issues before they land.

Fixes: redundant field names, needless returns, unnecessary closures,
io_other_error, needless borrows, single_match, unnecessary_unwrap,
and adds missing safety docs.

* chore: add 'clippy' to cspell dictionary
This commit is contained in:
Eric Seidel
2026-04-01 19:02:05 -07:00
committed by GitHub
parent 463ace0c56
commit 50954da68a
10 changed files with 38 additions and 18 deletions
+5
View File
@@ -13,6 +13,11 @@ inputs:
runs:
using: "composite"
steps:
- name: Clippy
working-directory: ${{ inputs.working_directory }}
shell: ${{ inputs.shell }}
run: cargo clippy --all-targets -- -D warnings
- name: Build
working-directory: ${{ inputs.working_directory }}
shell: ${{ inputs.shell }}