From 0b81f1536926fd75e901711ac4926ad918efa013 Mon Sep 17 00:00:00 2001 From: Johnathan Corgan Date: Sun, 12 Apr 2026 08:33:38 +0000 Subject: [PATCH] Add rustfmt to pinned toolchain components MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- rust-toolchain.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 9cf4a67..a328086 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,2 +1,3 @@ [toolchain] channel = "1.94.1" +components = ["rustfmt"]