fix: resolve all clippy warnings — redundant closures, dead code, collapsible_if, needless borrow
Some checks failed
lint / lint (push) Has been cancelled
test / unit (push) Has been cancelled
test / integration (push) Has been cancelled
lint / lint (pull_request) Failing after 9m25s
test / unit (pull_request) Successful in 16m57s
test / integration (pull_request) Failing after 17m29s
Some checks failed
lint / lint (push) Has been cancelled
test / unit (push) Has been cancelled
test / integration (push) Has been cancelled
lint / lint (pull_request) Failing after 9m25s
test / unit (pull_request) Successful in 16m57s
test / integration (pull_request) Failing after 17m29s
This commit is contained in:
13
.githooks/pre-commit
Executable file
13
.githooks/pre-commit
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
echo "→ cargo fmt"
|
||||
if ! cargo fmt --all -- --check; then
|
||||
echo " run 'cargo fmt --all' to fix formatting"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "→ cargo clippy"
|
||||
if ! cargo clippy --workspace -- -D warnings; then
|
||||
exit 1
|
||||
fi
|
||||
Reference in New Issue
Block a user