Skip to content

Commit

Permalink
Merge pull request stratis-storage#338 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 a375bbc + b8755d7 commit f18d3da
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 @@ -43,10 +49,10 @@ verify-dependency-bounds: test-set-lower-bounds

clippy:
(cd libcryptsetup-rs-sys && RUSTFLAGS="${DENY}" \
cargo clippy --all-targets --all-features -- \
cargo clippy --all-features ${CARGO_OPTS} -- \
-D clippy::cargo -D clippy::all)
RUSTFLAGS="${DENY}" \
cargo clippy --all-targets --all-features -- \
cargo clippy --all-features ${CARGO_OPTS} -- \
-D clippy::cargo -D clippy::all -D clippy::ptr-as-ptr

docs-rust:
Expand Down

0 comments on commit f18d3da

Please sign in to comment.