diff --git a/githooks/pre-commit b/githooks/pre-commit index 90abae3c..5d0b9fe6 100755 --- a/githooks/pre-commit +++ b/githooks/pre-commit @@ -46,4 +46,4 @@ fi git diff-index --check --cached $against -- || exit 1 # Check that code lints cleanly. -cargo +nightly clippy --all-features -- -D warnings || exit 1 +cargo +$(cat ./nightly-version) clippy --workspace --all-targets --all-features -- --deny warnings || exit 1