Improved match item span

This commit is contained in:
2026-05-28 12:16:28 +02:00
parent 7a2ba74d9c
commit ad11a3bd6a
3 changed files with 24 additions and 12 deletions
+5 -1
View File
@@ -59,7 +59,11 @@ impl GenRust for Statement {
cg.add(" {");
cg.indent += 1;
for (pat, body) in match_items {
for match_item in match_items {
cg.add_indentedln(&match_item.get_comment());
let MatchItem(pat, body) = &match_item.item;
for (i, p) in pat.iter().enumerate() {
cg.addln("");
cg.add_indented("");