Skip to content

Commit 583f2f4

Browse files
committed
ci: Clean up cargo fmt step
1 parent 02f7519 commit 583f2f4

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,11 @@ jobs:
2727
- uses: dtolnay/rust-toolchain@master
2828
with:
2929
toolchain: ${{ matrix.rust }}
30-
- run: rustup component add rustfmt-preview
31-
- name: cargo fmt --all -- --check if stable
30+
- name: cargo fmt --all -- --check
3231
run: |
33-
if [ "${{ matrix.rust }}" = "stable" ]; then
34-
cargo fmt --all -- --check
35-
fi
32+
rustup component add rustfmt-preview
33+
cargo fmt --all -- --check
34+
if: matrix.rust == 'stable'
3635
- run: |
3736
cargo build --verbose
3837
- run: |

0 commit comments

Comments
 (0)