summaryrefslogtreecommitdiff
path: root/rust/rust.go
diff options
context:
space:
mode:
author Ivan Lozano <ivanlozano@google.com> 2020-08-05 12:47:14 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2020-08-05 12:47:14 +0000
commitb14e14151964df77548e37de84300b433592013e (patch)
treec73f79bd3a9bf591d75937d7b329cdcc5230dabd /rust/rust.go
parentfe58347aefcfd0fbf63000766d2c54a95bd3985f (diff)
parent32267c88c44d5c7a31a78f6e8de00a3528a1d443 (diff)
Merge "[rust] Disable clippy for rust_bindgen modules."
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 {