Skip to content

Commit d606f34

Browse files
committed
Fix up invocation of rustfmt
RUSTFMT=1 changes the binary used by cargo fmt - see rust-lang/rustfmt#4419
1 parent 4a35df8 commit d606f34

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

.travis.yml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ matrix:
1616
- rust: nightly
1717
include:
1818
- rust: stable
19-
env: CLIPPY=1
19+
env: CHECK_CLIPPY=1
2020
before_script:
2121
- rustup component add clippy-preview
2222
script:
@@ -25,19 +25,12 @@ matrix:
2525
script:
2626
- cargo build --all-features
2727
- rust: stable
28-
env: RUSTFMT=1
28+
env: CHECK_RUSTFMT=1
2929
before_script:
3030
- rustup component add rustfmt
3131
script:
3232
- rustup component list --installed
33-
- echo $PATH
34-
- echo $HOME
35-
- ls -l ~/.cargo/bin
36-
- which rustc
37-
- which cargo
38-
- rustfmt --version
39-
- rustfmt --edition 2018 --check /home/travis/build/Metaswitch/swagger-rs/src/lib.rs --verbose
40-
- cargo fmt --verbose -- --check --verbose
33+
- cargo fmt -- --check
4134
branches:
4235
only:
4336
- staging

0 commit comments

Comments
 (0)