From f9ed2328af56fd7678c8b8e22ee8e93bac616ea5 Mon Sep 17 00:00:00 2001 From: Victor Berger Date: Sun, 25 Feb 2018 15:58:53 +0100 Subject: [PATCH] Update travis for rustfmt-preview --- .travis.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 4a76baac1b1..60e2503fb40 100644 --- a/.travis.yml +++ b/.travis.yml @@ -31,8 +31,8 @@ before_script: - mkdir $(pwd)/socket - export XDG_RUNTIME_DIR="$(pwd)/socket" - | - if [ $TRAVIS_RUST_VERSION = "nightly" ]; then - cargo install rustfmt-nightly --force + if [ $TRAVIS_RUST_VERSION != "1.20.0" ]; then + rustup component add rustfmt-preview fi - which cargo-tarpaulin || cargo install cargo-tarpaulin - which cargo-install-update || cargo install cargo-update @@ -43,7 +43,7 @@ os: script: - | - if [ $TRAVIS_RUST_VERSION = "nightly" ]; then + if [ $TRAVIS_RUST_VERSION != "1.20.0" ]; then cargo fmt --all -- --write-mode=diff fi - cargo build --all --all-features