From 2b84ecda9d4b7c5be95873ca658e74d76255e4db Mon Sep 17 00:00:00 2001 From: Bradlee Speice Date: Sat, 8 Dec 2018 19:21:34 -0500 Subject: [PATCH] Move the rustfmt install --- .travis.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index f14bcda..60b9857 100644 --- a/.travis.yml +++ b/.travis.yml @@ -40,13 +40,13 @@ before_install: install: - source ~/.cargo/env || true - -script: - - if [ "$TRAVIS_RUST_VERSION" = "nightly" ]; then + - if [ "$TRAVIS_RUST_VERSION" == "nightly" ]; then rustup component add rustfmt-preview else rustup component add rustfmt fi + +script: - cargo fmt --all -- --check - | if [ -z "$TRAVIS_TAG" ]; then