1
Fork 0

Account for comma in suggestion

This commit is contained in:
Esteban Küber 2018-05-30 11:04:39 -07:00
parent cbc70a0d68
commit d66d35bb91
3 changed files with 4 additions and 4 deletions

View file

@ -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 { ", " })),
],
);
}