about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorUlyssa <git@ulyssa.dev>2021-09-15 08:58:23 -0700
committerCaleb Cartwright <calebcartwright@users.noreply.github.com>2021-09-20 20:05:52 -0500
commitdd445aba080cd337300644c77137fedcad482623 (patch)
tree08baa4c48904f177716c6a7be9b898c5dc5d3c40 /src
parent7aa69e5bc87f32fdcbf037abce2d575335480b9a (diff)
downloadrust-dd445aba080cd337300644c77137fedcad482623.tar.gz
rust-dd445aba080cd337300644c77137fedcad482623.zip
Trailing comma on match block goes missing when guard is on its own line
Diffstat (limited to 'src')
-rw-r--r--src/matches.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/matches.rs b/src/matches.rs
index 140ec226c02..5a6ed0ec06e 100644
--- a/src/matches.rs
+++ b/src/matches.rs
@@ -409,6 +409,7 @@ fn rewrite_match_body(
             }
             result.push_str(&nested_indent_str);
             result.push_str(&body_str);
+            result.push_str(&comma);
             return Some(result);
         }