Close #2551
This commit is contained in:
parent
d8723aaa8c
commit
d402cd20a8
@ -1547,7 +1547,7 @@ pub fn span_ends_with_comma(context: &RewriteContext, span: Span) -> bool {
|
||||
for (kind, c) in CharClasses::new(context.snippet(span).chars()) {
|
||||
match c {
|
||||
_ if kind.is_comment() || c.is_whitespace() => continue,
|
||||
')' | '}' => result = result && prev_char != c,
|
||||
')' | '}' => result = result && prev_char != ')' && prev_char != '}',
|
||||
',' => result = true,
|
||||
_ => result = false,
|
||||
}
|
||||
|
3
tests/target/issue-2551.rs
Normal file
3
tests/target/issue-2551.rs
Normal file
@ -0,0 +1,3 @@
|
||||
mcro!(func(A {
|
||||
a: 12345667800111111111111,
|
||||
}));
|
Loading…
x
Reference in New Issue
Block a user