diff --git a/githooks/pre-commit b/githooks/pre-commit index cabd06f..1a964bb 100755 --- a/githooks/pre-commit +++ b/githooks/pre-commit @@ -48,3 +48,6 @@ git diff-index --check --cached $against -- || exit 1 # Check that code lints cleanly. cargo clippy --features=rand-std,recovery,lowmemory,global-context --all-targets -- -D warnings || exit 1 + +# Check that there are no formatting issues. +cargo +nightly fmt --check || exit 1