summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rwxr-xr-xformat.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/format.sh b/format.sh
index 4bc0eff2d5..8fe6fd7787 100755
--- a/format.sh
+++ b/format.sh
@@ -7,12 +7,11 @@ set -u
VERSION=`grep "required_version" rustfmt.toml | cut -f2 -d'"'`
CMD="rustfmt"
-INSTALL_CMD="cargo install --vers $VERSION --force rustfmt-nightly"
+INSTALL_CMD="cargo +nightly install --vers $VERSION --force rustfmt-nightly"
case "$(uname -s)" in
Linux*) export LD_LIBRARY_PATH=$(rustc +nightly --print sysroot)/lib;;
Darwin*) export DYLD_LIBRARY_PATH=$(rustc +nightly --print sysroot)/lib;;
- *) echo "Unsupported platform"; exit 1
esac
function correct_rustfmt() {