From b27f6a85f42b5131d6697898c5351be7255f7c85 Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Thu, 27 Nov 2025 13:25:39 +0100 Subject: [PATCH] rec: Run clippy when CARGO_USE_DEV and CARGO_USE_CLIPPY are set Adapted from #16557 Signed-off-by: Otto Moerbeek --- pdns/recursordist/rec-rust-lib/rust/build_recrust | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pdns/recursordist/rec-rust-lib/rust/build_recrust b/pdns/recursordist/rec-rust-lib/rust/build_recrust index 24051a6843..30d607bda7 100755 --- a/pdns/recursordist/rec-rust-lib/rust/build_recrust +++ b/pdns/recursordist/rec-rust-lib/rust/build_recrust @@ -14,6 +14,9 @@ mytarget=${CARGO_TARGET_DIR-target} CARGO_PROFILE="--release" if [ -n "${CARGO_USE_DEV}" ]; then CARGO_PROFILE="" + if [ -n "${CARGO_USE_CLIPPY}" ]; then + $CARGO clippy --manifest-path $srcdir/Cargo.toml + fi fi $CARGO build ${CARGO_PROFILE} $RUST_TARGET --target-dir=$builddir/target --manifest-path $srcdir/Cargo.toml -- 2.47.3