Commit 2525689
Fix struct field deletion to include trailing commas
- Updated visit_expr_struct to iterate over field pairs including punctuation
- Include trailing comma in the span to generate valid Rust code
- This fixes the issue where deleted fields left invalid syntax with dangling commas
Co-authored-by: sourcefrog <346355+sourcefrog@users.noreply.github.com>1 parent 47d105a commit 2525689
1 file changed
+17
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
698 | 698 | | |
699 | 699 | | |
700 | 700 | | |
701 | | - | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
702 | 704 | | |
703 | 705 | | |
704 | 706 | | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
705 | 720 | | |
706 | 721 | | |
707 | 722 | | |
708 | | - | |
| 723 | + | |
709 | 724 | | |
710 | 725 | | |
711 | 726 | | |
| |||
0 commit comments