From 398fc6b73a178d2d5bee2ad56d3156411825b3a4 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Thu, 4 Apr 2024 15:26:22 +1100 Subject: [PATCH] Update pre-commit hook to use pinned nightly Use the pinned nightly toolchain from `./nightly-version` when running git pre-commit hook. --- githooks/pre-commit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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