Skip to content

Commit 0891848

Browse files
committed
Fix rustfmt installation to be via rustup.
1 parent 115b453 commit 0891848

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ci/script.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ case "$BINDGEN_JOB" in
1313
"test")
1414
# Need rustfmt to compare the test expectations.
1515
rustup update nightly
16-
rustup run nightly cargo install -f rustfmt-nightly
17-
16+
rustup component add rustfmt
17+
export RUSTFMT="$(rustup which rustfmt)"
1818
cargo test $BINDGEN_PROFILE --features "$BINDGEN_FEATURES"
1919
./ci/assert-no-diff.sh
2020
;;

0 commit comments

Comments
 (0)