Skip to content

Commit

Permalink
Changes per reviewer comments
Browse files Browse the repository at this point in the history
  • Loading branch information
davidBar-On committed Nov 15, 2022
1 parent 2a55cf2 commit 643f32c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1218,10 +1218,9 @@ impl MacroBranch {
return None;
}

// 5 = " => {"
let old_body = context.snippet(self.body).trim();
let has_block_body = old_body.starts_with('{');
let prefix_width = if has_block_body && context.config.format_macro_bodies() {
let prefix_width = if has_block_body {
// 6 = " => {{"
6
} else {
Expand Down

0 comments on commit 643f32c

Please sign in to comment.