fix nighly and beta on CI are failing

we always use stable rustfmt so checking with nighly/beta rustfmt is not
necessary.
This commit is contained in:
rhysd 2020-01-07 15:19:44 +09:00
parent 413dd66886
commit 106efe58ce
2 changed files with 4 additions and 2 deletions

View File

@ -18,7 +18,10 @@ before_script:
script:
- cargo build --all --locked --verbose
- cargo test --all --locked --verbose
- cargo fmt --all -- --check
- |
if [[ "$TRAVIS_RUST_VERSION" == "stable" ]]; then
cargo fmt --all -- --check
fi
jobs:
allow_failures:

View File

@ -128,4 +128,3 @@ build: false
# environment variable.
test_script:
- cargo test --verbose %cargoflags%
- cargo fmt --all -- --check