mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-25 04:23:25 +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,
|
&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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue