Skip to content

Commit 7de2493

Browse files
gnzlbgalexcrichton
authored andcommitted
Migrate to rustfmt-preview and require rustfmt builds to pass (rust-lang#353)
* migrate to rustfmt-preview and require rustfmt to pass * reformat with rustfmt-preview
1 parent 63c8f37 commit 7de2493

File tree

21 files changed

+79
-123
lines changed

21 files changed

+79
-123
lines changed

.travis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@ matrix:
2727
- script: cargo test --manifest-path crates/stdsimd-verify/Cargo.toml
2828
install: true
2929
- env: RUSTFMT=On TARGET=x86_64-unknown-linux-gnu NO_ADD=1
30-
script: |
31-
cargo install rustfmt-nightly --force
32-
cargo fmt --all -- --write-mode=diff
30+
before_script:
31+
- rustup component add rustfmt-preview
32+
script:
33+
- cargo fmt --all -- --write-mode=diff
3334
- env: CLIPPY=On TARGET=x86_64-unknown-linux-gnu NO_ADD=1
3435
script: |
3536
cargo install clippy
3637
cargo clippy --all -- -D clippy-pedantic
3738
allow_failures:
38-
- env: RUSTFMT=On TARGET=x86_64-unknown-linux-gnu NO_ADD=1
3939
- env: CLIPPY=On TARGET=x86_64-unknown-linux-gnu NO_ADD=1
4040

4141
before_install:

0 commit comments

Comments
 (0)