clippy: actually fail if there are any warnings
authorRaphaël Gomès <rgomes@octobus.net>
Wed, 25 Jan 2023 18:45:38 +0100
changeset 49953 3c37cb7bce61
parent 49952 70b4c7af9cdb
child 49954 a11237723332
clippy: actually fail if there are any warnings So far, only errors would trip the CI, this makes it so all warnings are elevated to errors, making it a CI fail if any warnings are present. This was the intended behavior, I just missed this when adding clippy.
Makefile
--- a/Makefile	Wed Jan 25 18:44:09 2023 +0100
+++ b/Makefile	Wed Jan 25 18:45:38 2023 +0100
@@ -158,7 +158,7 @@
 
 cargo-clippy:
 	cd $(HGROOT)/rust \
-		&& $(CARGO) clippy --all --features "$(HG_RUST_FEATURES)"
+		&& $(CARGO) clippy --all --features "$(HG_RUST_FEATURES)" -- -D warnings
 
 check-code:
 	hg manifest | xargs python contrib/check-code.py