From 2f76934bf2aa59f78b671c722b73f0d69c7adbd3 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Fri, 31 Jul 2026 10:57:39 +0100 Subject: Handle singleton structs in Rust --- hobgoblin/src/output/lang/rust/ast.hob | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hobgoblin/src') 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; } -- cgit v1.2.3