From 0891848b09197d624ae3fb6f8938d833c926b5f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Fri, 26 Jul 2019 16:22:56 +0200 Subject: [PATCH] Fix rustfmt installation to be via rustup. --- ci/script.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/script.sh b/ci/script.sh index 8e2c7e1fa..880896cd7 100755 --- a/ci/script.sh +++ b/ci/script.sh @@ -13,8 +13,8 @@ case "$BINDGEN_JOB" in "test") # Need rustfmt to compare the test expectations. rustup update nightly - rustup run nightly cargo install -f rustfmt-nightly - + rustup component add rustfmt + export RUSTFMT="$(rustup which rustfmt)" cargo test $BINDGEN_PROFILE --features "$BINDGEN_FEATURES" ./ci/assert-no-diff.sh ;;