diff --git a/rust/bindgen.go b/rust/bindgen.go index 304f8ec38..b926e0894 100644 --- a/rust/bindgen.go +++ b/rust/bindgen.go @@ -177,6 +177,7 @@ func NewRustBindgen(hod android.HostOrDeviceSupported) (*Module, *bindgenDecorat module.sourceProvider = bindgen module.compiler = library + module.setClippy(false) return module, bindgen } diff --git a/rust/rust.go b/rust/rust.go index 1192836a5..01952477e 100644 --- a/rust/rust.go +++ b/rust/rust.go @@ -1037,6 +1037,12 @@ func (mod *Module) Name() string { 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 {