other: add fmt to husky hook (#731)

Just adds a cargo fmt check to the husky pre-push check.
This commit is contained in:
Clement Tsang 2022-05-16 21:26:20 -04:00 committed by GitHub
parent de765fc364
commit 1190135d37
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,6 +4,9 @@ set -e
echo "Running pre-push hook:"
echo "Checking fmt"
cargo fmt --all -- --check
echo "Executing: cargo clippy --all-targets --workspace -- -D warnings"
cargo clippy --all-targets --workspace -- -D warnings