Commit b20593e
committed
ci(lint): pin lint job to Rust 1.88.0 to fix rustfmt-not-installed error
The lint job used `dtolnay/rust-toolchain@stable` which installs
rustfmt + clippy on the current stable (1.95). But `rust-toolchain.toml`
pins cargo to 1.88.0, so when `cargo fmt --check` runs, it routes
through the 1.88.0 toolchain that lacks rustfmt:
error: 'cargo-fmt' is not installed for the toolchain
'1.88.0-x86_64-unknown-linux-gnu'
Switch the lint job to `dtolnay/rust-toolchain@1.88.0` so the
installed components match the toolchain that actually runs cargo.
The build/test jobs still use `@stable` since they only need rustc +
cargo, both of which come with the default 1.88.0 install rustup
auto-fetches when it sees `rust-toolchain.toml`.1 parent c1f3aea commit b20593e
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
52 | 57 | | |
53 | 58 | | |
54 | 59 | | |
| |||
0 commit comments