summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xci/script.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/ci/script.sh b/ci/script.sh
index b23d8b5d..7338dc0b 100755
--- a/ci/script.sh
+++ b/ci/script.sh
@@ -11,6 +11,10 @@ export RUST_BACKTRACE=1
case "$BINDGEN_JOB" in
"test")
+ # Need rustfmt to compare the test expectations.
+ rustup update nightly
+ rustup run nightly cargo install -f rustfmt-nightly
+
cargo test $BINDGEN_PROFILE --features "$BINDGEN_FEATURES"
./ci/assert-no-diff.sh
;;