Cleaned up AST

This commit is contained in:
2026-05-17 06:00:26 +02:00
parent dd647afd59
commit e89f5e805c
6 changed files with 15 additions and 38 deletions
+2 -6
View File
@@ -219,7 +219,7 @@ impl GetRust for [Prefix] {
impl GetRust for ExprPath {
fn get_rust(&self) -> String {
self.segments
self.0
.iter()
.map(ExprPathSegment::get_rust)
.collect::<Vec<_>>()
@@ -601,11 +601,7 @@ impl ToRust for Statement {
cg.add_indentedln(&format!("let {}{};", decl.get_rust(), init));
}
Statement::Assign { target, value } => {
cg.add_indentedln(&format!("{} = {};", target.get_rust(), value.get_rust(),));
}
Statement::CompoundAssign {
Statement::Assign {
target,
compound,
value,