Skip to content

Commit

Permalink
Merge pull request #896 from mulkieran/clippy-fix
Browse files Browse the repository at this point in the history
Makefile: Add CLIPPY_FIX variable
  • Loading branch information
mulkieran authored Jan 3, 2024
2 parents e7e4e76 + 94e784e commit 8a7f2d9
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ else
MANIFEST_PATH_ARGS = --manifest-path=${MANIFEST_PATH}
endif

ifeq ($(origin CLIPPY_FIX), undefined)
CLIPPY_OPTS = --all-targets --no-deps
else
CLIPPY_OPTS = --fix
endif

IGNORE_ARGS ?=

DENY = -D warnings -D future-incompatible -D unused -D rust_2018_idioms -D nonstandard_style
Expand Down Expand Up @@ -59,10 +65,10 @@ sudo_test:

clippy:
RUSTFLAGS="${DENY}" \
cargo clippy --all-targets --all-features -- \
cargo clippy --all-features ${CLIPPY_OPTS} -- \
${CLIPPY_DENY}
cd devicemapper-rs-sys && RUSTFLAGS="${DENY}" \
cargo clippy --all-targets --all-features -- \
cargo clippy --all-features ${CLIPPY_OPTS} -- \
${CLIPPY_DENY}

docs:
Expand Down

0 comments on commit 8a7f2d9

Please sign in to comment.