Skip to content

Commit

Permalink
ci: Always run rustfmt
Browse files Browse the repository at this point in the history
Since 6ab46bb ("ci: Use some tricks..."), `rustfmt` is invoked
manually on all files in `src`. However, this stopped running `cargo
fmt` which covered everything that wasn't in `src`.

This was unintentional so add it back.
  • Loading branch information
tgross35 committed Nov 20, 2024
1 parent 27ad994 commit 96b6ec2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ci/style.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ rustc ci/style.rs && ./style src
command -v rustfmt
rustfmt -V

# Run once to cover everything that isn't in `src/`
cargo fmt

# Save a list of all source files
tmpfile="file-list~" # trailing tilde for gitignore
find src -name '*.rs' > "$tmpfile"
Expand Down

0 comments on commit 96b6ec2

Please sign in to comment.