Skip to content

Commit 96b6ec2

Browse files
committed
ci: Always run rustfmt
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.
1 parent 27ad994 commit 96b6ec2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ci/style.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ rustc ci/style.rs && ./style src
1414
command -v rustfmt
1515
rustfmt -V
1616

17+
# Run once to cover everything that isn't in `src/`
18+
cargo fmt
19+
1720
# Save a list of all source files
1821
tmpfile="file-list~" # trailing tilde for gitignore
1922
find src -name '*.rs' > "$tmpfile"

0 commit comments

Comments
 (0)