summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xci/script.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/ci/script.sh b/ci/script.sh
index 8c5d5de7..7003618a 100755
--- a/ci/script.sh
+++ b/ci/script.sh
@@ -14,6 +14,7 @@ case "$BINDGEN_JOB" in
# Need rustfmt to compare the test expectations.
rustup update nightly
rustup component add rustfmt
+ rustup component add --toolchain nightly rustfmt
RUSTFMT="$(rustup which rustfmt)"
export RUSTFMT
cargo test "$BINDGEN_PROFILE" --features "$BINDGEN_FEATURES"
@@ -28,6 +29,7 @@ case "$BINDGEN_JOB" in
"nofeatures")
rustup update nightly
rustup component add rustfmt
+ rustup component add --toolchain nightly rustfmt
RUSTFMT="$(rustup which rustfmt)"
export RUSTFMT
cargo test "$BINDGEN_PROFILE" --no-default-features