mirror of
https://github.com/jmcorgan/fips.git
synced 2026-07-22 07:48:26 +00:00
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:
@@ -1,3 +1,3 @@
|
||||
[toolchain]
|
||||
channel = "1.94.1"
|
||||
components = ["rustfmt"]
|
||||
components = ["rustfmt", "clippy"]
|
||||
|
||||
Reference in New Issue
Block a user