diff --git a/githooks/pre-commit b/githooks/pre-commit index dc0fa1bf..5bb2c486 100755 --- a/githooks/pre-commit +++ b/githooks/pre-commit @@ -47,3 +47,6 @@ git diff-index --check --cached $against -- || exit 1 # Check that code lints cleanly. cargo clippy --all-features -- -D warnings || exit 1 + +# Check that there are no formatting issues. +cargo +nightly fmt --check || exit 1