From 996a591001f12846ca1e0951b35bdd5cd1550141 Mon Sep 17 00:00:00 2001 From: Johnathan Corgan Date: Sat, 2 May 2026 02:44:47 +0000 Subject: [PATCH] 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. --- rust-toolchain.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust-toolchain.toml b/rust-toolchain.toml index a328086..32c68ee 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,3 +1,3 @@ [toolchain] channel = "1.94.1" -components = ["rustfmt"] +components = ["rustfmt", "clippy"]