Fix: Field list and struct all order

This commit is contained in:
2026-05-05 15:58:42 +02:00
parent 95c4826b5f
commit dfc3a56dff
3 changed files with 4 additions and 6 deletions
+1 -1
View File
@@ -284,7 +284,7 @@ impl ToRust for TopLevelKind {
cg.addln(&format!("{}struct {} {{", vis, name));
cg.indent += 1;
for (field_name, (_, ty)) in &fields.0 {
for (field_name, _, ty) in &fields.0 {
let ty = ty.get_rust();
cg.add_indentedln(&format!("pub {}: {},", field_name, ty));
}