Updated codegen

This commit is contained in:
2026-05-28 11:36:28 +02:00
parent e09c7926e5
commit 3444f93546
2 changed files with 8 additions and 9 deletions
+1 -4
View File
@@ -1,6 +1,6 @@
use mist_parser::ast::*;
use crate::{Context, get_mutable};
use crate::Context;
use crate::{GenRust, GetRust, RustCodegen};
@@ -164,7 +164,6 @@ impl GenRust for Statement {
body,
} => {
cg.add("for ");
cg.add(&get_mutable(*mutable));
pattern.gen_rust(ctx, cg);
cg.add(" in ");
iterator.gen_rust(ctx, cg);
@@ -186,8 +185,6 @@ impl GenRust for Statement {
impl GenRust for VarDecl {
fn gen_rust(&self, ctx: &mut Context, cg: &mut RustCodegen) {
cg.add(&get_mutable(self.mutable));
self.name.gen_rust(ctx, cg);
cg.add(