mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-24 12:03:31 +00:00
Add trailing commas
This commit is contained in:
parent
ea835fc800
commit
a068cedee0
1 changed files with 2 additions and 2 deletions
|
@ -186,7 +186,7 @@ pub(crate) fn complete_postfix(acc: &mut Completions, ctx: &CompletionContext) {
|
|||
&dot_receiver,
|
||||
"ok",
|
||||
"Ok(expr)",
|
||||
&format!("Ok({})", receiver_text)
|
||||
&format!("Ok({})", receiver_text),
|
||||
)
|
||||
.add_to(acc);
|
||||
|
||||
|
@ -196,7 +196,7 @@ pub(crate) fn complete_postfix(acc: &mut Completions, ctx: &CompletionContext) {
|
|||
&dot_receiver,
|
||||
"err",
|
||||
"Err(expr)",
|
||||
&format!("Err({})", receiver_text)
|
||||
&format!("Err({})", receiver_text),
|
||||
)
|
||||
.add_to(acc);
|
||||
|
||||
|
|
Loading…
Reference in a new issue