Update pre-commit hook to use pinned nightly

Use the pinned nightly toolchain from `./nightly-version` when running
git pre-commit hook.
This commit is contained in:
Tobin C. Harding 2024-04-04 15:26:22 +11:00
parent 1a85eac01b
commit 398fc6b73a
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
1 changed files with 1 additions and 1 deletions

View File

@ -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