Fix redundant parens around braced macro call in match arms

This commit is contained in:
David Tolnay 2024-04-20 11:23:01 -07:00
parent 10227eaee7
commit 78c8dc1234
No known key found for this signature in database
GPG key ID: F9BA143B95FF6D82
3 changed files with 54 additions and 7 deletions

View file

@ -780,7 +780,7 @@ impl<'a> State<'a> {
}
_ => {
self.end(); // Close the ibox for the pattern.
self.print_expr(body, FixupContext::new_stmt());
self.print_expr(body, FixupContext::new_match_arm());
self.word(",");
}
}