about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbjorn3 <bjorn3@users.noreply.github.com>2020-10-05 11:13:11 +0200
committerbjorn3 <bjorn3@users.noreply.github.com>2020-10-05 11:13:11 +0200
commit832b3117ccf6d1dd1701ce0fcede555febe72813 (patch)
tree306e5bc63936e681a189645b526b1a98cfc84249
parent3fc673d0a9f6065c7b1f6178426c60082b74f408 (diff)
downloadrust-832b3117ccf6d1dd1701ce0fcede555febe72813.tar.gz
rust-832b3117ccf6d1dd1701ce0fcede555febe72813.zip
Install rustfmt by default when doing a rustup
-rwxr-xr-xscripts/rustup.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/rustup.sh b/scripts/rustup.sh
index b911320f7a0..38991d6d47d 100755
--- a/scripts/rustup.sh
+++ b/scripts/rustup.sh
@@ -9,6 +9,7 @@ case $1 in
         echo "=> Installing new nightly"
         rustup toolchain install --profile minimal nightly-${TOOLCHAIN} # Sanity check to see if the nightly exists
         echo nightly-${TOOLCHAIN} > rust-toolchain
+        rustup component add rustfmt || true
 
         echo "=> Uninstalling all old nighlies"
         for nightly in $(rustup toolchain list | grep nightly | grep -v $TOOLCHAIN | grep -v nightly-x86_64); do