Skip to content

Commit 89bf51e

Browse files
Add rustfmt to the CI pipeline
1 parent 4e01b15 commit 89bf51e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,11 @@ before_cache: |
1818
if [[ "$TRAVIS_RUST_VERSION" == nightly ]]; then
1919
RUSTFLAGS="--cfg procmacro2_semver_exempt" cargo install cargo-tarpaulin
2020
fi
21+
before_script:
22+
- rustup component add rustfmt
2123
script:
2224
- cargo clean
25+
- cargo fmt --all -- --check
2326
- cargo build
2427
- cargo test
2528
after_success: |

0 commit comments

Comments
 (0)