From 13c8a709f19a75a879ce320fea0c6b365a3e6fd8 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Tue, 30 Jan 2024 07:19:12 +1100 Subject: [PATCH] Use nightly toolchain in pre-commit hook We use the nightly toolchain to run `clippy` now, update the git pre-commit hook to mirror this. --- githooks/pre-commit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/githooks/pre-commit b/githooks/pre-commit index dc0fa1bf..f6c5305d 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 clippy --all-features -- -D warnings || exit 1 +cargo +nightly clippy --all-features -- -D warnings || exit 1