Add trailing commas

This commit is contained in:
Duong Do Minh Chau 2021-03-09 16:00:06 +07:00
parent ea835fc800
commit a068cedee0
No known key found for this signature in database
GPG key ID: 35914026E84FF202

View file

@ -186,7 +186,7 @@ pub(crate) fn complete_postfix(acc: &mut Completions, ctx: &CompletionContext) {
&dot_receiver, &dot_receiver,
"ok", "ok",
"Ok(expr)", "Ok(expr)",
&format!("Ok({})", receiver_text) &format!("Ok({})", receiver_text),
) )
.add_to(acc); .add_to(acc);
@ -196,7 +196,7 @@ pub(crate) fn complete_postfix(acc: &mut Completions, ctx: &CompletionContext) {
&dot_receiver, &dot_receiver,
"err", "err",
"Err(expr)", "Err(expr)",
&format!("Err({})", receiver_text) &format!("Err({})", receiver_text),
) )
.add_to(acc); .add_to(acc);