Skip to content

Commit 15afdd9

Browse files
committed
fix clippy
Signed-off-by: Yoshua Wuyts <[email protected]>
1 parent 0b0d546 commit 15afdd9

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.travis.yml

+9-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,15 @@ rust:
33
- nightly
44

55
before_script: |
6-
rustup component add rustfmt-preview &&
7-
rustup component add clippy-preview
6+
rustup component add rustfmt-preview;
7+
rustup component add clippy-preview;
8+
if ! rustup component add rustfmt; then
9+
target=`curl https://rust-lang.github.io/rustup-components-history/x86_64-unknown-linux-gnu/rustfmt`;
10+
echo "'rustfmt' is unavailable on the toolchain 'nightly', use the toolchain 'nightly-$target' instead";
11+
rustup toolchain install nightly-$target;
12+
rustup default nightly-$target;
13+
rustup component add rustfmt;
14+
fi
815
script: |
916
cargo fmt -- --check &&
1017
cargo clippy -- -D clippy &&

0 commit comments

Comments
 (0)