Skip to content

Commit

Permalink
Update formatting ci to use --error-on-unformatted
Browse files Browse the repository at this point in the history
This makes ci fail if rustfmt bails because it's unable to format the
code.

See <rust-lang/rustfmt#1976 (comment)>
for discussion of this option.
  • Loading branch information
dzfranklin authored and dwrensha committed Jun 12, 2023
1 parent 9d3e031 commit 3bbb520
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,4 +135,4 @@ jobs:
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
args: --all -- --check --unstable-features --error-on-unformatted

0 comments on commit 3bbb520

Please sign in to comment.