We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a86301f + abd7607 commit 79509beCopy full SHA for 79509be
.travis.yml
@@ -38,7 +38,11 @@ install:
38
- |
39
if [[ -z ${INTEGRATION} ]]; then
40
if ! rustup component add rustfmt; then
41
- cargo install --git https://github.com/rust-lang/rustfmt --bin rustfmt
+ TARGET=$(rustc -Vv | awk '/host/{print $2}')
42
+ NIGHTLY=$(curl -s "https://rust-lang.github.io/rustup-components-history/${TARGET}/rustfmt")
43
+ curl -sSL "https://static.rust-lang.org/dist/${NIGHTLY}/rustfmt-nightly-${TARGET}.tar.xz" | \
44
+ tar -xJf - --strip-components=3 -C ~/.cargo/bin
45
+ rm -rf ~/.cargo/bin/doc
46
fi
47
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
48
. $HOME/.nvm/nvm.sh
0 commit comments