From 99d227ec6df5e0913a438d53cc0c99bcc34ccb13 Mon Sep 17 00:00:00 2001 From: Oliver Hamlet Date: Fri, 29 May 2020 16:44:22 +0100 Subject: [PATCH] Update rustfmt install command in CI rustfmt hasn't been a preview for a while now. It still needs to be installed separately because Travis uses the minimal Rustup profile, which doesn't include it. Also use the minimal profile on Windows for consistency and to speed up installation. --- .travis.yml | 2 +- appveyor.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 7922555..a96ed6a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,7 +10,7 @@ addons: cache: cargo install: - - rustup component add rustfmt-preview + - rustup component add rustfmt - rustfmt --version - cargo install cargo-tarpaulin --version 0.10.2 diff --git a/appveyor.yml b/appveyor.yml index f0bfdda..194ea5b 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -8,12 +8,12 @@ cache: install: - appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe - - rustup-init -yv + - rustup-init --profile=minimal -yv - set PATH=%PATH%;%USERPROFILE%\.cargo\bin - rustc -vV - cargo -vV - - rustup component add rustfmt-preview + - rustup component add rustfmt - rustfmt --version - cd tests