summaryrefslogtreecommitdiff
path: root/hobgoblin/src
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2026-07-31 10:57:39 +0100
committerMichael Williamson <mike@zwobble.org>2026-07-31 10:57:39 +0100
commit2f76934bf2aa59f78b671c722b73f0d69c7adbd3 (patch)
tree6784f78eafe1bd2d906f410440b101b660e09077 /hobgoblin/src
parent578bf1f04b48f48225cfa794a27426cca4f6384a (diff)
Handle singleton structs in Rust
Diffstat (limited to 'hobgoblin/src')
-rw-r--r--hobgoblin/src/output/lang/rust/ast.hob2
1 files changed, 1 insertions, 1 deletions
diff --git a/hobgoblin/src/output/lang/rust/ast.hob b/hobgoblin/src/output/lang/rust/ast.hob
index f1a4513..1fbfa99 100644
--- a/hobgoblin/src/output/lang/rust/ast.hob
+++ b/hobgoblin/src/output/lang/rust/ast.hob
@@ -37,7 +37,7 @@ struct RustFunctionParam {
struct RustStructStruct {
field attributes: List[RustOuterAttribute];
field name: RustIdentifier;
- field fields: List[RustStructField];
+ field fields: Option[List[RustStructField]];
field docComment: DocComment;
}