[rust] Disable lints for generated bindings
Bindgen generated bindings will not pass lints, so we need to disable
them when building bindings crates.
Test: m libbinder_ndk_bindgen
Change-Id: I4536f15f8505ff8d5436f1e6cbc2035e6801276d
diff --git a/rust/bindgen.go b/rust/bindgen.go
index 304f8ec..559adff 100644
--- a/rust/bindgen.go
+++ b/rust/bindgen.go
@@ -173,6 +173,7 @@
_, library := NewRustLibrary(hod)
library.BuildOnlyRust()
+ library.setNoLint()
library.sourceProvider = bindgen
module.sourceProvider = bindgen