Skip to content

Commit 8c266ef

Browse files
committed
Move rustfmt up
... as it's quick and we don't need to wait for our whole CI to pass just to discover we forgot to run `cargo fmt`.
1 parent 0fec62d commit 8c266ef

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/rust.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ jobs:
3939
run: |
4040
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile=minimal --default-toolchain ${{ matrix.toolchain }}
4141
rustup override set ${{ matrix.toolchain }}
42+
- name: Check formatting on Rust ${{ matrix.toolchain }}
43+
if: matrix.check-fmt
44+
run: rustup component add rustfmt && cargo fmt --all -- --check
4245
- name: Pin packages to allow for MSRV
4346
if: matrix.msrv
4447
run: |
@@ -80,6 +83,3 @@ jobs:
8083
if: "matrix.platform != 'windows-latest' && matrix.build-uniffi"
8184
run: |
8285
RUSTFLAGS="--cfg no_download" cargo test --features uniffi
83-
- name: Check formatting on Rust ${{ matrix.toolchain }}
84-
if: matrix.check-fmt
85-
run: rustup component add rustfmt && cargo fmt --all -- --check

0 commit comments

Comments
 (0)