Move the rustfmt install

pull/2/head
Bradlee Speice 2018-12-08 19:21:34 -05:00
parent f2be732ec7
commit 2b84ecda9d
1 changed files with 3 additions and 3 deletions

View File

@ -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