mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-30 13:06:28 +03:00
Do not add missing snippet between arms if it's just spaces
This commit is contained in:
+3
-1
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user