summaryrefslogtreecommitdiff
path: root/rust/rust.go
diff options
context:
space:
mode:
Diffstat (limited to 'rust/rust.go')
-rw-r--r--rust/rust.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/rust/rust.go b/rust/rust.go
index ec3b59086..612e25727 100644
--- a/rust/rust.go
+++ b/rust/rust.go
@@ -225,11 +225,7 @@ func DefaultsFactory(props ...interface{}) android.Module {
}
func (mod *Module) CrateName() string {
- if mod.compiler != nil && mod.compiler.crateName() != "" {
- return mod.compiler.crateName()
- }
- // Default crate names replace '-' in the name to '_'
- return strings.Replace(mod.BaseModuleName(), "-", "_", -1)
+ return mod.compiler.crateName()
}
func (mod *Module) CcLibrary() bool {