Use the new rustfmt-preview component when on CI
@@ -46,12 +46,12 @@ matrix:
include:
- rust: nightly-2018-02-13
script:
- - cargo install --force rustfmt-nightly --vers 0.3.6
- - cargo fmt -- --write-mode=diff
- cargo install --force clippy --vers 0.0.186
- cargo clippy
- rust: stable
script:
+ - rustup component add rustfmt-preview
+ - cargo fmt -- --write-mode=diff
- cargo build
- cargo test
- npm install
