Skip to content

Commit c95f29e

Browse files
committed
ci: check rustfmt in Travis
1 parent 3644208 commit c95f29e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ci/script.sh

+6
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,12 @@ main() {
4747

4848
# Run tests for ripgrep and all sub-crates.
4949
"$CARGO" test --target "$TARGET" --verbose --all --features 'pcre2'
50+
51+
# Check formatting.
52+
if [ "$TRAVIS_RUST_VERSION" = "1.41.0" ]; then
53+
rustup component add rustfmt
54+
"$CARGO" fmt --all -- --check
55+
fi
5056
}
5157

5258
main

0 commit comments

Comments
 (0)