summaryrefslogtreecommitdiff
path: root/rust/rust.go
diff options
context:
space:
mode:
author Ivan Lozano <ivanlozano@google.com> 2020-08-04 16:27:16 -0400
committer Ivan Lozano <ivanlozano@google.com> 2020-08-04 16:27:16 -0400
commit32267c88c44d5c7a31a78f6e8de00a3528a1d443 (patch)
tree58b738f509c3d0fc4b0141767aa83211fd3352ab /rust/rust.go
parent89e4882d3764dc5c749a630b22381d9ead761500 (diff)
[rust] Disable clippy for rust_bindgen modules.
bindgen generated code may not pass clippy checks, so preemptively disable clippy for these. Bug: 162828070 Test: clippy is not called when compiling rust_bindgen library variants. Change-Id: I9632c889417bdfd1adf96d9cfbccbe6340824205
Diffstat (limited to 'rust/rust.go')
-rw-r--r--rust/rust.go6
1 files changed, 6 insertions, 0 deletions
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 {