Skip to content

Commit 4e26a28

Browse files
committed
feat(clippy): run with all-features
Update clippy to check with all features enabled to ensure lints are picked up with GDB enabled. Signed-off-by: Jack Thomson <[email protected]>
1 parent 131cc00 commit 4e26a28

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

tests/integration_tests/build/test_clippy.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,6 @@ def test_rust_clippy(target):
2222
"""
2323
Test that clippy does not generate any errors/warnings.
2424
"""
25-
cargo("clippy", f"--target {target} --all --all-targets", "-D warnings")
25+
cargo(
26+
"clippy", f"--target {target} --all --all-targets --all-features", "-D warnings"
27+
)

tools/devtool

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1110,7 +1110,7 @@ cmd_checkbuild() {
11101110
fi
11111111

11121112
# Use GNU target to check build as musl has issues with cross-compilation
1113-
cmd_sh "cargo clippy --target ${TARGET_ARCH}-unknown-linux-gnu --all --all-targets -- -D warnings" \
1113+
cmd_sh "cargo clippy --target ${TARGET_ARCH}-unknown-linux-gnu --all --all-targets --all-features -- -D warnings" \
11141114
|| die "Error running build checks for $TARGET_ARCH"
11151115
say "Build check passed for $TARGET_ARCH"
11161116
}

0 commit comments

Comments
 (0)