Do not add missing snippet between arms if it's just spaces
This commit is contained in:
parent
60fb11e5dd
commit
d4bf413956
@ -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…
x
Reference in New Issue
Block a user