Do not add missing snippet between arms if it's just spaces
This commit is contained in:
parent
60fb11e5dd
commit
d4bf413956
1 changed files with 3 additions and 1 deletions
|
|
@ -1615,7 +1615,9 @@ fn rewrite_match_arms(
|
|||
arm_shape,
|
||||
&arm_indent_str,
|
||||
));
|
||||
result.push_str(&comment);
|
||||
if !comment.chars().all(|c| c == ' ') {
|
||||
result.push_str(&comment);
|
||||
}
|
||||
result.push('\n');
|
||||
result.push_str(&arm_indent_str);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue