Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

ci(style): pin fmt/clippy to rust-toolchain.toml instead of floating stable

Louis Beaumont1d1a55774154
diff --git a/.github/workflows/style.yml b/.github/workflows/style.yml
index 44370e299..710a3cf19 100644
--- a/.github/workflows/style.yml
+++ b/.github/workflows/style.yml
@@ -23,7 +23,10 @@ jobs:
- name: Set up Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
- toolchain: stable
+ # No explicit toolchain: the action reads rust-toolchain.toml, so fmt
+ # and clippy run the SAME version developers use locally. A floating
+ # `stable` here meant every new Rust release re-formatted unchanged
+ # files and turned main red until someone hand-fixed them.
components: clippy, rustfmt
rustflags: ""