We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 22e2942 commit e91a3f1Copy full SHA for e91a3f1
.travis.yml
@@ -62,12 +62,14 @@ matrix:
62
- name: cargo clippy
63
rust: nightly
64
script:
65
- - if rustup component add clippy-preview;
66
- then
67
- cargo clippy --all --all-features;
68
- else
69
- echo 'Skipping clippy';
+ - if ! rustup component add clippy; then
+ target=`curl https://rust-lang.github.io/rustup-components-history/x86_64-unknown-linux-gnu/clippy`;
+ echo "'clippy' is unavailable on the toolchain 'nightly', use the toolchain 'nightly-$target' instead";
+ rustup toolchain install nightly-$target;
+ rustup default nightly-$target;
70
+ rustup component add clippy;
71
fi
72
+ - cargo clippy --all --all-features
73
74
- name: cargo bench
75
0 commit comments