Skip to content

Commit

Permalink
ci: Clean up cargo fmt step
Browse files Browse the repository at this point in the history
  • Loading branch information
sdroege committed Aug 16, 2024
1 parent 02f7519 commit a50c7b5
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,11 @@ jobs:
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
- run: rustup component add rustfmt-preview
- name: cargo fmt --all -- --check if stable
- name: cargo fmt --all -- --check
run: |
if [ "${{ matrix.rust }}" = "stable" ]; then
cargo fmt --all -- --check
fi
rustup component add rustfmt-preview
cargo fmt --all -- --check
if: matrix.toolchain == 'stable'
- run: |
cargo build --verbose
- run: |
Expand Down

0 comments on commit a50c7b5

Please sign in to comment.