diff options
| author | Michael Williamson <mike@zwobble.org> | 2026-07-31 10:57:39 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2026-07-31 10:57:39 +0100 |
| commit | 2f76934bf2aa59f78b671c722b73f0d69c7adbd3 (patch) | |
| tree | 6784f78eafe1bd2d906f410440b101b660e09077 /hobgoblin/src | |
| parent | 578bf1f04b48f48225cfa794a27426cca4f6384a (diff) | |
Handle singleton structs in Rust
Diffstat (limited to 'hobgoblin/src')
| -rw-r--r-- | hobgoblin/src/output/lang/rust/ast.hob | 2 |
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; } |
