X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Ftools%2Frustfmt%2Fsrc%2Fmatches.rs;h=5a6ed0ec06e55a37ca203bafdbd9625a2ad3ce4c;hb=56694b04532cc0dec6e2f577135da3513e856923;hp=140ec226c02e5a072929ab318c477af93e2f5bb2;hpb=30a0a9b694cde95cbab863f7ef4d554f0f46b606;p=rust.git diff --git a/src/tools/rustfmt/src/matches.rs b/src/tools/rustfmt/src/matches.rs index 140ec226c02..5a6ed0ec06e 100644 --- a/src/tools/rustfmt/src/matches.rs +++ b/src/tools/rustfmt/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); }