aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArve Hjønnevåg <arve@android.com>2024-03-21 19:35:42 -0700
committerArve Hjønnevåg <arve@android.com>2024-03-25 21:42:47 +0000
commit8bcb4bed83a713e724ff2ee51eef8c95bb22cdfe (patch)
tree9592d798cbef34f592824a1ccf61481b1e20e69a
parentdad07f8a151a0ce4ff026e51f55627f8f1ad00f8 (diff)
downloadcommon-8bcb4bed83a713e724ff2ee51eef8c95bb22cdfe.tar.gz
make: rust: Don't disable rust lint for external/lk
Limit only disable it for external/rust. This might need to be updated if we add otjher external rust projects. Bug: 304585390 Change-Id: I366d45eb62d659473df31c898c48425a7cac74cd
-rw-r--r--make/rust.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/make/rust.mk b/make/rust.mk
index df75e3be..016c80ac 100644
--- a/make/rust.mk
+++ b/make/rust.mk
@@ -96,7 +96,7 @@ MODULE_RUSTFLAGS += --emit link
# Allow all lints if the module is in external/. This matches the behavior of
# soong.
-ifneq ($(filter external/%,$(MODULE_SRCS)),)
+ifneq ($(filter external/rust/%,$(MODULE_SRCS)),)
MODULE_RUSTFLAGS += --cap-lints allow
MODULE_RUSTDOCFLAGS += --cap-lints allow
endif