diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 49d801ec..bd25127b 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -394,6 +394,10 @@ jobs: toolchain: stable override: true + - name: check rustfmt + run: | + cargo fmt --manifest-path ${{ matrix.path }} --all -- --check + - uses: actions-rs/cargo@v1 with: command: build @@ -415,12 +419,6 @@ jobs: --manifest-path ${{ matrix.path }} --features mock - - name: check rustfmt - run: | - rustup override set nightly - rustup component add rustfmt - cargo +nightly fmt --manifest-path ${{ matrix.path }} --all -- --check - issues-matrix: name: Issues Matrix needs: init