From cfd025b5289bc305470a96657868c982a2b13bc2 Mon Sep 17 00:00:00 2001 From: Christian Duerr Date: Sat, 30 Mar 2019 16:48:36 +0000 Subject: Add rustfmt style guide --- ci/script.sh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ci/script.sh') diff --git a/ci/script.sh b/ci/script.sh index c17bbbd2..21991415 100755 --- a/ci/script.sh +++ b/ci/script.sh @@ -9,6 +9,12 @@ if [ "$CLIPPY" == "true" ]; then exit fi +# Run clippy rustfmt +if [ "$RUSTFMT" == "true" ]; then + cargo fmt -- --check + exit +fi + # Run test in release mode if a tag is present, to produce an optimized binary if [ -n "$TRAVIS_TAG" ]; then cargo test --release || error=true -- cgit v1.2.3