Skip to content

Commit

Permalink
Update pre-commit hook to use pinned nightly
Browse files Browse the repository at this point in the history
Use the pinned nightly toolchain from `./nightly-version` when running
git pre-commit hook.
  • Loading branch information
tcharding committed Apr 4, 2024
1 parent 1a85eac commit 398fc6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion githooks/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 398fc6b

Please sign in to comment.