Skip to content

Commit

Permalink
Fix rust formatting check
Browse files Browse the repository at this point in the history
  • Loading branch information
dkim19375 committed Oct 15, 2023
1 parent 6c219ba commit 55f8ab7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/check-format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@ env:
CARGO_TERM_COLOR: always

jobs:
build:
check-format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set cargo fmt output
run: export FMT_OUTPUT=$(cargo fmt --message-format short)
- name: Print cargo fmt output
run: echo $FMT_OUTPUT
- name: Check cargo fmt output
run: if [ -z $FMT_OUTPUT ]; then exit 1; fi
run: if [ -n $FMT_OUTPUT ]; then exit 1; fi

0 comments on commit 55f8ab7

Please sign in to comment.