Skip to content

Commit d5f4753

Browse files
committed
Explicitly install the latest rustfmt in CI
1 parent ef50c2d commit d5f4753

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ci/script.sh

+4
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ export RUST_BACKTRACE=1
1111

1212
case "$BINDGEN_JOB" in
1313
"test")
14+
# Need rustfmt to compare the test expectations.
15+
rustup update nightly
16+
rustup run nightly cargo install -f rustfmt-nightly
17+
1418
cargo test $BINDGEN_PROFILE --features "$BINDGEN_FEATURES"
1519
./ci/assert-no-diff.sh
1620
;;

0 commit comments

Comments
 (0)