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