minor: Handle match arm commas in make::match_arm

Co-authored-by: Giga Bowser <45986823+Giga-Bowser@users.noreply.github.com>
This commit is contained in:
Lukas Wirth 2025-07-04 11:05:05 +02:00
parent 4183bcdcde
commit 2c01609d6d
3 changed files with 11 additions and 21 deletions

View file

@ -435,7 +435,7 @@ mod tests {
_ => {
let var_name = 2 + 2;
(var_name, true)
}"#]];
},"#]];
expect.assert_eq(&edit.new_root.to_string());
assert_eq!(edit.find_annotation(placeholder_snippet).len(), 2);