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