Soft returning refactor
This commit is contained in:
@@ -103,7 +103,7 @@ impl GenRust for Expression {
|
||||
if ensure_semicolon {
|
||||
ctx.expr_ensure_semicolon = true;
|
||||
|
||||
if !self.is_block() {
|
||||
if !self.is_soft_return() {
|
||||
cg.add(";");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user