diff options
author | 2020-12-21 09:11:10 -0800 | |
---|---|---|
committer | 2020-12-22 12:38:35 -0800 | |
commit | 18aefc19776337955c9a1a8946f188900cb4d537 (patch) | |
tree | b3e831f67d9ec2952839b9ab156c0a6ba149d491 /rust/rust.go | |
parent | 1f8c2729846b83e24c09292ef5739b13375f7c0c (diff) |
Remove unnecessary snake case variables.
Test: m nothing + TreeHugger
Change-Id: I99f7162944daa6c57c6ae4763261e108bb5cb6b1
Diffstat (limited to 'rust/rust.go')
-rw-r--r-- | rust/rust.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/rust/rust.go b/rust/rust.go index 2e78a147a..e2ead0095 100644 --- a/rust/rust.go +++ b/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"} ) |