From 1d9ec93ffa8c5359424c06a389e732984fcb3b1d Mon Sep 17 00:00:00 2001 From: Sergey Pepyakin Date: Wed, 2 Jan 2019 22:17:19 +0100 Subject: [PATCH] Run rustfmt check on CI --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index d038692..29a7095 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,7 +22,9 @@ env: install: - if [ "$TRAVIS_RUST_VERSION" == "nightly" ]; then rustup target add wasm32-unknown-unknown; fi +- rustup component add rustfmt script: +- cargo fmt --all -- --check # Make sure nightly targets are not broken. - if [ "$TRAVIS_RUST_VERSION" == "nightly" ]; then cargo check --tests --manifest-path=fuzz/Cargo.toml; fi - if [ "$TRAVIS_RUST_VERSION" == "nightly" ]; then cargo check --benches --manifest-path=benches/Cargo.toml; fi