chore: more friendly lint

This commit is contained in:
Slinetrac
2025-10-07 18:28:32 +08:00
parent 0d12103085
commit 86b4712beb
2 changed files with 4 additions and 4 deletions

View File

@@ -33,7 +33,7 @@ if [ -n "$RUST_FILES" ]; then
exit 1
fi
# Run clippy for linting
if ! cargo clippy -- -D warnings; then
if ! cargo clippy; then
echo "clippy found issues. Please fix them before committing."
cd ..
exit 1
@@ -42,4 +42,4 @@ if [ -n "$RUST_FILES" ]; then
fi
# Allow commit
exit 0
exit 0