Fix parenthesis

This commit is contained in:
2026-07-05 02:45:38 +02:00
parent 13664413c5
commit f574d6e8af
+4
View File
@@ -215,7 +215,11 @@ impl GenRust for VarDecl {
.as_ref()
.map(|t| {
let t = vec![t.get_rust(); self.tuple_names.len() + 1];
if self.tuple_names.is_empty() {
format!(": {}", t.join(", "))
} else {
format!(": ({})", t.join(", "))
}
})
.unwrap_or_default(),
);