Skip to content

Commit dfb615f

Browse files
baumanjkinetiknz
authored andcommitted
Check that code conforms to rustfmt formatting
1 parent b97b249 commit dfb615f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.travis.yml

+4
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ env:
1313
- RELEASE=
1414
- RELEASE=--release
1515

16+
before_script:
17+
- rustup component add rustfmt
18+
1619
script:
1720
- cargo test --all --verbose $RELEASE
1821
# We cannot run `cargo test` with the mp4parse_infallible feature enabled
@@ -23,3 +26,4 @@ script:
2326
# See https://github.com/mozilla/mp4parse-rust/issues/197
2427
- cargo check --all --verbose $RELEASE --tests --all-features
2528
- cargo doc --package mp4parse_capi
29+
- cargo fmt -- --check || echo "Please reformat your code with 'cargo fmt' (version $(cargo fmt -- --version))"

0 commit comments

Comments
 (0)