We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 481002e commit 5d73776Copy full SHA for 5d73776
.travis.yml
@@ -18,8 +18,14 @@ matrix:
18
- name: fmt
19
rust: nightly
20
os: linux
21
- before_script:
22
- - rustup component add rustfmt
+ before_script: |
+ if ! rustup component add rustfmt; then
23
+ target=`curl https://rust-lang.github.io/rustup-components-history/x86_64-unknown-linux-gnu/rustfmt`;
24
+ echo "'rustfmt' is unavailable on the toolchain 'nightly', use the toolchain 'nightly-$target' instead";
25
+ rustup toolchain install nightly-$target;
26
+ rustup default nightly-$target;
27
+ rustup component add rustfmt;
28
+ fi
29
script:
30
- cargo fmt --all -- --check
31
0 commit comments