From cfa47d15320213de700acb093fa404f6f6a23b6b Mon Sep 17 00:00:00 2001 From: Hoverbear Date: Wed, 18 Jul 2018 11:04:29 -0700 Subject: [PATCH] travis: Use rustup provided clippy. --- .travis.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index ee2e45682..1a70da5de 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,7 +3,6 @@ sudo: false env: global: - RUST_BACKTRACE=1 - - CLIPPY_VERSION=0.0.192 - RUSTFLAGS="-D warnings" cache: cargo @@ -17,11 +16,9 @@ matrix: - rustup component add rustfmt-preview before_script: - cargo fmt --all -- --write-mode diff - # This build uses the nightly used by TiKV and checks clippy. - - rust: nightly-2018-04-06 + - rust: nightly install: - - export PATH="$PATH:$HOME/.cargo/bin" - - if [[ `cargo clippy -- --version` != $CLIPPY_VERSION* ]]; then cargo install -f clippy --version $CLIPPY_VERSION; fi + - rustup component add clippy-preview --toolchain nightly before_script: - cargo clippy