Skip to content

Commit f966201

Browse files
committed
make cargo fmt in ci/script.sh optional
1 parent 392a0fb commit f966201

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ci/script.sh

+4-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@ main() {
1515
# generate tests
1616
cargo run --package test-generator --target x86_64-unknown-linux-musl
1717

18-
# nicer syntax error messages (if any)
19-
cargo fmt
18+
if cargo fmt --version >/dev/null 2>&1; then
19+
# nicer syntax error messages (if any)
20+
cargo fmt
21+
fi
2022

2123
# run tests
2224
cross test --target $TARGET --release

0 commit comments

Comments
 (0)