Account for comma in suggestion
This commit is contained in:
parent
cbc70a0d68
commit
d66d35bb91
3 changed files with 4 additions and 4 deletions
|
@ -3868,7 +3868,7 @@ impl<'a> Parser<'a> {
|
|||
"move the `..` to the end of the field list",
|
||||
vec![
|
||||
(etc_span, "".into()),
|
||||
(self.span, ", .. }".into()),
|
||||
(self.span, format!("{}.. }}", if ate_comma { "" } else { ", " })),
|
||||
],
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue