From b78ba730f25a61900701a317000ffa71894592e4 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Wed, 30 Nov 2022 14:43:56 +1100 Subject: [PATCH] hashes: Run clippy in ci Currently we only run the linter in `bitcoin/contrib/test.sh`, we should do the same in the `hashes` ci script. --- hashes/contrib/test.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hashes/contrib/test.sh b/hashes/contrib/test.sh index 6cf1e764..bb7fe2e8 100755 --- a/hashes/contrib/test.sh +++ b/hashes/contrib/test.sh @@ -22,6 +22,11 @@ export CARGO_TERM_VERBOSE=true cargo build --all cargo test --all +if [ "$DO_LINT" = true ] +then + cargo clippy --all-features --all-targets -- -D warnings +fi + if [ "$DO_FEATURE_MATRIX" = true ]; then cargo build --all --no-default-features cargo test --all --no-default-features