Skip to content

Commit 1d09120

Browse files
committed
Add cargo fmt to travis build config
1 parent 3e91136 commit 1d09120

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.travis.yml

+5
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ rust:
66
- 1.36.0
77

88
script:
9+
- |
10+
if [[ $TRAVIS_RUST_VERSION == "stable" ]]
11+
then
12+
rustup component add rustfmt
13+
cargo fmt -- --check || (echo "Please reformat your code with 'cargo fmt'"; false)
914
- cargo build --verbose
1015
- cargo test --verbose
1116
- cargo doc --verbose

0 commit comments

Comments
 (0)