Skip to content

Commit

Permalink
Fix up invocation of rustfmt
Browse files Browse the repository at this point in the history
RUSTFMT=1 changes the binary used by cargo fmt - see
rust-lang/rustfmt#4419
  • Loading branch information
richardwhiuk committed Jan 12, 2021
1 parent 4a35df8 commit d606f34
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ matrix:
- rust: nightly
include:
- rust: stable
env: CLIPPY=1
env: CHECK_CLIPPY=1
before_script:
- rustup component add clippy-preview
script:
Expand All @@ -25,19 +25,12 @@ matrix:
script:
- cargo build --all-features
- rust: stable
env: RUSTFMT=1
env: CHECK_RUSTFMT=1
before_script:
- rustup component add rustfmt
script:
- rustup component list --installed
- echo $PATH
- echo $HOME
- ls -l ~/.cargo/bin
- which rustc
- which cargo
- rustfmt --version
- rustfmt --edition 2018 --check /home/travis/build/Metaswitch/swagger-rs/src/lib.rs --verbose
- cargo fmt --verbose -- --check --verbose
- cargo fmt -- --check
branches:
only:
- staging
Expand Down

0 comments on commit d606f34

Please sign in to comment.