Skip to content

Commit 398fc6b

Browse files
committed
Update pre-commit hook to use pinned nightly
Use the pinned nightly toolchain from `./nightly-version` when running git pre-commit hook.
1 parent 1a85eac commit 398fc6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

githooks/pre-commit

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@ fi
4646
git diff-index --check --cached $against -- || exit 1
4747

4848
# Check that code lints cleanly.
49-
cargo +nightly clippy --all-features -- -D warnings || exit 1
49+
cargo +$(cat ./nightly-version) clippy --workspace --all-targets --all-features -- --deny warnings || exit 1

0 commit comments

Comments
 (0)