This commit is contained in:
Alan Du 2018-03-22 00:57:22 -04:00
parent d8723aaa8c
commit d402cd20a8
2 changed files with 4 additions and 1 deletions

View file

@ -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,
}

View file

@ -0,0 +1,3 @@
mcro!(func(A {
a: 12345667800111111111111,
}));