Skip to content

Commit

Permalink
Another go
Browse files Browse the repository at this point in the history
  • Loading branch information
larseggert committed Feb 2, 2024
1 parent 71b9884 commit 946b978
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,11 @@ jobs:
RUST_LOG: warn

- name: Check formatting
run: cargo +${{ matrix.rust-toolchain }} fmt --all -- --check $CONFIG_PATH
env:
CONFIG_PATH: ${{ matrix.rust-toolchain != 'nightly' && '--config-path=$(mktemp)' || '' }}
run: |
if [ "${{ matrix.rust-toolchain }}" != "nightly" ]; then
export CONFIG_PATH="--config-path=$(mktemp)"
fi
cargo +${{ matrix.rust-toolchain }} fmt --all -- --check $CONFIG_PATH
if: success() || failure()

- name: Clippy
Expand Down

0 comments on commit 946b978

Please sign in to comment.