diff --git a/.travis.yml b/.travis.yml index 9ad0c85..215ed0a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,13 +4,9 @@ rust: - beta - nightly before_script: - - bash -c 'if [[ "$TRAVIS_RUST_VERSION" == "nightly*" ]]; then - rustup component add rustfmt-preview - fi' + - bash -c 'if [[ "$TRAVIS_RUST_VERSION" == "nightly"* ]]; then rustup component add rustfmt-preview; fi' script: - - bash -c 'if [[ "$TRAVIS_RUST_VERSION" == "nightly*" ]]; then - cargo fmt --all -- --check - fi' + - bash -c 'if [[ "$TRAVIS_RUST_VERSION" == "nightly"* ]]; then cargo fmt --all -- --check; fi' - cargo build - cargo test matrix: