Merge "[rust] Disable clippy for rust_bindgen modules."
diff --git a/rust/bindgen.go b/rust/bindgen.go
index 559adff..403f466 100644
--- a/rust/bindgen.go
+++ b/rust/bindgen.go
@@ -178,6 +178,7 @@
 
 	module.sourceProvider = bindgen
 	module.compiler = library
+	module.setClippy(false)
 
 	return module, bindgen
 }
diff --git a/rust/rust.go b/rust/rust.go
index 1192836..0195247 100644
--- a/rust/rust.go
+++ b/rust/rust.go
@@ -1037,6 +1037,12 @@
 	return name
 }
 
+func (mod *Module) setClippy(clippy bool) {
+	if mod.clippy != nil {
+		mod.clippy.Properties.Clippy = proptools.BoolPtr(clippy)
+	}
+}
+
 var _ android.HostToolProvider = (*Module)(nil)
 
 func (mod *Module) HostToolPath() android.OptionalPath {