summaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/zwobble/hobgoblin/compiler/output/generators/rusttypes/RustTypesGenerator.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/java/org/zwobble/hobgoblin/compiler/output/generators/rusttypes/RustTypesGenerator.java b/src/main/java/org/zwobble/hobgoblin/compiler/output/generators/rusttypes/RustTypesGenerator.java
index c4af4e7..7cc17b9 100644
--- a/src/main/java/org/zwobble/hobgoblin/compiler/output/generators/rusttypes/RustTypesGenerator.java
+++ b/src/main/java/org/zwobble/hobgoblin/compiler/output/generators/rusttypes/RustTypesGenerator.java
@@ -163,8 +163,7 @@ public class RustTypesGenerator implements Generator {
private RustType generateTypePath(NamespaceName namespaceName, String typeName, Context context) {
var segments = new ArrayList<RustTypePathSegment>();
- // TODO: use crate as a keyword, not an identifier
- segments.add(RustTypePathSegment.of(new RustIdentifier("crate")));
+ segments.add(RustTypePathSegment.crate());
for (var moduleName : this.namespaceNameToRustCrateModulePath(namespaceName)) {
segments.add(RustTypePathSegment.of(moduleName));
}