Class fields

This commit is contained in:
2026-05-10 16:38:13 +02:00
parent 476d984d4a
commit 2fb38b6974
4 changed files with 61 additions and 5 deletions
+1 -1
View File
@@ -375,7 +375,7 @@ impl ToRust for TopLevelKind {
cg.indent += 1;
for field in fields {
let ty = field.decl.type_.clone().unwrap().get_rust();
let ty = field.decl.type_.clone().get_rust();
cg.add_indentedln(&format!("pub {}: {},", field.decl.name.get_rust(), ty));
}