summaryrefslogtreecommitdiff
path: root/rust/project_json.go
diff options
context:
space:
mode:
author Matthew Maurer <mmaurer@google.com> 2023-11-20 17:52:01 +0000
committer Matthew Maurer <mmaurer@google.com> 2023-11-20 20:25:27 +0000
commitcd41653b96d2285b11b010198e453cf688b66cbe (patch)
treee3b824fceb20ab965fee478698583c76c6671153 /rust/project_json.go
parent689d6f63e4cf97b30385f357dd2165207f51d0c0 (diff)
rust: Privatize Cargo* methods on compiler
These methods aren't used outside, and probably shouldn't be. Bug: 309943184 Test: m nothing Change-Id: Ia7dd5220ccd10c0136aa16f5e21149eaf7a03ea1
Diffstat (limited to 'rust/project_json.go')
-rw-r--r--rust/project_json.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/rust/project_json.go b/rust/project_json.go
index 40aa7c736..9a9c600a7 100644
--- a/rust/project_json.go
+++ b/rust/project_json.go
@@ -241,8 +241,8 @@ func (singleton *projectGeneratorSingleton) addCrate(ctx android.SingletonContex
ProcMacro: procMacro,
}
- if comp.CargoOutDir().Valid() {
- crate.Env["OUT_DIR"] = comp.CargoOutDir().String()
+ if comp.cargoOutDir().Valid() {
+ crate.Env["OUT_DIR"] = comp.cargoOutDir().String()
}
for _, feature := range comp.Properties.Features {