Skip to content

Commit 64d2cfb

Browse files
committed
Automate code formatting check on CI
1 parent 961dfb8 commit 64d2cfb

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

ci/install.sh

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ main() {
44
if [ $TARGET != x86_64-unknown-linux-gnu ]; then
55
rustup target add $TARGET
66
fi
7+
rustup component add rustfmt
78
}
89

910
main

ci/script.sh

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ set -euxo pipefail
33
main() {
44
cargo check --target $TARGET
55
cargo check --target $TARGET --features unproven
6+
cargo fmt -- --check
67

78
if [ $TRAVIS_RUST_VERSION = nightly ]; then
89
cargo test --target $TARGET --features unproven

0 commit comments

Comments
 (0)