diff --git a/.github/workflows/rustfmt_check.yml b/.github/workflows/rustfmt_check.yml index 1d0d4e52c..38626bca0 100644 --- a/.github/workflows/rustfmt_check.yml +++ b/.github/workflows/rustfmt_check.yml @@ -13,6 +13,9 @@ jobs: rustup toolchain install nightly rustup component add rustfmt --toolchain nightly + - name: Ensure the `main` branch rustfmt is applied for the run + run: git checkout main rustfmt.toml + - name: Run cargo +nightly fmt --check run: cargo +nightly fmt --check