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