Add clippy to rust-toolchain.toml components

The new GitHub Actions Clippy job introduced in a41f80a failed on the
first push because dtolnay/rust-toolchain@stable installed the stable
channel with components: clippy, but the repo's rust-toolchain.toml
overrides to channel "1.94.1" with components ["rustfmt"] only. cargo
clippy then re-resolves the toolchain to 1.94.1 and bombs because the
clippy component isn't installed for that specific version.

Fix: add clippy to the toolchain override's components list. This
makes the rust-toolchain.toml the single source of truth for which
components every cargo invocation needs, and the GitHub Actions
toolchain-installation step picks them up automatically.

Local clippy continues to pass with this change; verified with
cargo clippy --all-targets --all-features -- -D warnings.
This commit is contained in:
Johnathan Corgan
2026-05-02 02:44:47 +00:00
parent da5d23ccb7
commit 996a591001

View File

@@ -1,3 +1,3 @@
[toolchain]
channel = "1.94.1"
components = ["rustfmt"]
components = ["rustfmt", "clippy"]