Skip to content

Commit

Permalink
Run rustfmt on linux build.
Browse files Browse the repository at this point in the history
  • Loading branch information
crlf0710 committed Nov 27, 2019
1 parent 1d7c90d commit cf9eeba
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dist/travis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,11 @@ if $is_main_build ; then
travis_retry rustup component add clippy
cargo clippy --all --all-targets --all-features -- --deny warnings
travis_fold_end cargo_clippy
elif [[ "$TRAVIS_OS_NAME" == linux ]] ; then
travis_fold_start cargo_fmt "cargo fmt" verbose
travis_retry rustup component add rustfmt
cargo fmt --all -- --check
travis_fold_end cargo_fmt
fi

# OK, the biggie: does it compile and pass the test suite?
Expand Down

0 comments on commit cf9eeba

Please sign in to comment.