Skip to content

Commit 70ce38d

Browse files
committed
travis: switch to rustfmt-preview for style checks
1 parent 945f2b4 commit 70ce38d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.travis.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ env:
1111
- RUSTFLAGS=-Dwarnings
1212
# Versions known to work with pinned nightly.
1313
- CLIPPY_VERSION=0.0.180
14-
- RUSTFMT_VERSION=0.3.6
1514

1615
before_script:
1716
- export PATH=$HOME/.cargo/bin:$PATH
@@ -23,12 +22,12 @@ before_script:
2322
fi
2423
- |
2524
if [[ $TRAVIS_RUST_VERSION =~ nightly-* ]]; then
25+
rustup component add rustfmt-preview
2626
cargo install-update -i "clippy:$CLIPPY_VERSION"
27-
cargo install-update -i "rustfmt-nightly:$RUSTFMT_VERSION"
2827
fi
2928
script:
30-
- cargo build && cargo test
3129
- |
3230
[[ ! $TRAVIS_RUST_VERSION =~ nightly-* ]] || cargo fmt -- --write-mode diff
31+
- cargo build && cargo test
3332
- |
3433
[[ ! $TRAVIS_RUST_VERSION =~ nightly-* ]] || cargo clippy

0 commit comments

Comments
 (0)