summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2021-05-24 09:36:47 +0300
committerLars Wirzenius <liw@liw.fi>2021-05-27 10:46:49 +0300
commitb731f752e19a85c92699071cf669226fb767c084 (patch)
tree802e26e5943c84b072ea74cabe29de3e280210ce
parent8d94529db55fe7107e42ab86255d9d49388c340a (diff)
downloadobnam2-b731f752e19a85c92699071cf669226fb767c084.tar.gz
build: don't hid clippy warnings
Previously we were hiding (with chronic) clippy output if it was successful. However, clippy exits with zero even if it writes warnings. Thus, chronic is the wrong solution. The output also contains progress reporting from cargo, which is unwanted, thus, this commit replaces chronic with the clippy -q option, to get rid of the progress reporting. Sponsored-by: author
-rwxr-xr-xcheck2
1 files changed, 1 insertions, 1 deletions
diff --git a/check b/check
index bcb04e0..ba187fc 100755
--- a/check
+++ b/check
@@ -20,7 +20,7 @@ got_cargo_cmd()
cargo "$1" --help > /dev/null
}
-got_cargo_cmd clippy && $hideok cargo clippy --all-targets
+got_cargo_cmd clippy && cargo clippy --all-targets -q
$hideok cargo build --all-targets
got_cargo_cmd fmt && $hideok cargo fmt -- --check
$hideok cargo test