Commit be7c059
committed
CI: pin rustfmt in rust-toolchain.toml so cargo fmt finds it
The test workflow failed at `cargo fmt --check` with "'cargo-fmt' is not
installed for the toolchain '1.96'". The rust-toolchain.toml channel pin
(1.96) is what rustup resolves when cargo fmt runs, but the rustfmt
component installed via the toolchain action's `components:` input landed
on a different toolchain resolution. Listing the component in the toml
makes it the single source of truth, so rustup ensures rustfmt is present
for the pinned toolchain.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01R3vgA3Q6PR9VQn8X5pLcMR1 parent 2f393fb commit be7c059
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
0 commit comments