changeset 49949:3c37cb7bce61

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.
author Raphaël Gomès <rgomes@octobus.net>
date Wed, 25 Jan 2023 18:45:38 +0100
parents 70b4c7af9cdb
children a11237723332
files Makefile
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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