Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e21ff45f authored by Ivan Lozano's avatar Ivan Lozano Committed by Automerger Merge Worker
Browse files

Merge "[rust] Disable clippy for rust_bindgen modules." am: b14e1415 am:...

Merge "[rust] Disable clippy for rust_bindgen modules." am: b14e1415 am: d6d5a03a am: 7c7ae7d0

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1389096

Change-Id: I4bb05dd9dc03ed10ffcdf50fc59dcd25cc3c2de4
parents 8365c7b6 7c7ae7d0
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -178,6 +178,7 @@ func NewRustBindgen(hod android.HostOrDeviceSupported) (*Module, *bindgenDecorat

	module.sourceProvider = bindgen
	module.compiler = library
	module.setClippy(false)

	return module, bindgen
}
+6 −0
Original line number Diff line number Diff line
@@ -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 {