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