aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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