Remove unnecessary snake case variables.
Test: m nothing + TreeHugger Change-Id: I99f7162944daa6c57c6ae4763261e108bb5cb6b1
This commit is contained in:
10
rust/rust.go
10
rust/rust.go
@@ -686,15 +686,15 @@ func (mod *Module) deps(ctx DepsContext) Deps {
|
||||
|
||||
type dependencyTag struct {
|
||||
blueprint.BaseDependencyTag
|
||||
name string
|
||||
library bool
|
||||
proc_macro bool
|
||||
name string
|
||||
library bool
|
||||
procMacro bool
|
||||
}
|
||||
|
||||
// InstallDepNeeded returns true for rlibs, dylibs, and proc macros so that they or their transitive
|
||||
// dependencies (especially C/C++ shared libs) are installed as dependencies of a rust binary.
|
||||
func (d dependencyTag) InstallDepNeeded() bool {
|
||||
return d.library || d.proc_macro
|
||||
return d.library || d.procMacro
|
||||
}
|
||||
|
||||
var _ android.InstallNeededDependencyTag = dependencyTag{}
|
||||
@@ -703,7 +703,7 @@ var (
|
||||
customBindgenDepTag = dependencyTag{name: "customBindgenTag"}
|
||||
rlibDepTag = dependencyTag{name: "rlibTag", library: true}
|
||||
dylibDepTag = dependencyTag{name: "dylib", library: true}
|
||||
procMacroDepTag = dependencyTag{name: "procMacro", proc_macro: true}
|
||||
procMacroDepTag = dependencyTag{name: "procMacro", procMacro: true}
|
||||
testPerSrcDepTag = dependencyTag{name: "rust_unit_tests"}
|
||||
sourceDepTag = dependencyTag{name: "source"}
|
||||
)
|
||||
|
Reference in New Issue
Block a user