Fixed some bugs

This commit is contained in:
2026-05-21 14:04:12 +02:00
parent 8703ac4254
commit f2257a4e81
3 changed files with 18 additions and 6 deletions
+1 -4
View File
@@ -92,7 +92,7 @@ impl GenRust for FunctionDecl {
cg.add(&self.return_type.get_rust());
if let Some(body) = &self.body {
cg.add_indentedln("{\n");
cg.add_indentedln(" {\n");
cg.indent += 1;
body.gen_rust(ctx, cg);
cg.indent -= 1;
@@ -363,9 +363,6 @@ impl GenRust for TopLevelKind {
(fields, &constructor.item).gen_rust(ctx, cg);
cg.indent -= 1;
cg.add_indentedln("}\n");
for item in items.clone() {
match item {
ClassItem::ImplDecl(_) => {}