Add rustfmt to pinned toolchain components

CI format check was failing because the pinned toolchain
rust-toolchain.toml overrides the `dtolnay/rust-toolchain@stable +
rustfmt` action installation — rustup installs rustfmt onto the
stable channel, but when cargo fmt runs inside the repo, rustup
honors the 1.94.1 pin and does an on-demand install that pulls only
rustc/cargo/rust-std.

Declaring components in rust-toolchain.toml ensures the on-demand
install of the pinned toolchain includes rustfmt.
This commit is contained in:
Johnathan Corgan
2026-04-12 08:33:38 +00:00
parent 19cb776216
commit 0b81f15369

View File

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