From 6383730706ed97fa1eb3844b48782b56722164b7 Mon Sep 17 00:00:00 2001 From: amtoaer Date: Thu, 29 May 2025 01:56:11 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E9=99=A4=20fmt=20=E5=A4=96=E4=B8=80?= =?UTF-8?q?=E5=BE=8B=E4=BD=BF=E7=94=A8=20stable=20toolchain?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/pr-check.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr-check.yaml b/.github/workflows/pr-check.yaml index a8a3b0e..968c658 100644 --- a/.github/workflows/pr-check.yaml +++ b/.github/workflows/pr-check.yaml @@ -26,7 +26,7 @@ jobs: - name: Checkout repo uses: actions/checkout@v4 - - run: rustup default nightly && rustup component add rustfmt clippy + - run: rustup default stable && rustup component add clippy && rustup component add rustfmt --toolchain nightly - name: Cache dependencies uses: swatinem/rust-cache@v2 @@ -34,7 +34,7 @@ jobs: save-if: ${{ github.ref == 'refs/heads/main' }} - name: cargo fmt check - run: cargo fmt --check + run: cargo +nightly fmt --check - name: cargo clippy run: cargo clippy