Soft returning refactor

This commit is contained in:
2026-05-24 13:20:08 +02:00
parent f4fe38140a
commit 63cc20107c
8 changed files with 61 additions and 21 deletions
+7
View File
@@ -94,6 +94,13 @@ impl RustCodegen {
}
}
}
pub fn ensure_brackets_body(&mut self, ctx: &mut Context, expr: &StatementBody) {
match expr {
StatementBody::Statement(expr) => self.ensure_brackets_expr(ctx, expr),
StatementBody::Expression(expr) => self.ensure_brackets_expr(ctx, expr),
}
}
}
impl GenRust for Attribute {