Add checking of examples with clippy

This commit is contained in:
Alexander Niederbühl 2020-06-05 13:51:51 +02:00
parent 7eb9afbac2
commit 468bb765bb
1 changed files with 1 additions and 0 deletions

View File

@ -18,6 +18,7 @@ clippy:
@touch src/lib.rs # Touching file to ensure that cargo clippy will re-check the project
cargo clippy --all-features --all-targets -- \
$(addprefix -D ,${CLIPPY_LINTS_TO_DENY})
for example in examples/*; do (cd $$example/; cargo clippy) || exit 1; done
lint: fmt clippy
@true