diff options
-rw-r--r-- | crates/ide_completion/src/completions/postfix.rs | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/crates/ide_completion/src/completions/postfix.rs b/crates/ide_completion/src/completions/postfix.rs index 9c34ed0b6..4884a42e2 100644 --- a/crates/ide_completion/src/completions/postfix.rs +++ b/crates/ide_completion/src/completions/postfix.rs | |||
@@ -180,8 +180,25 @@ pub(crate) fn complete_postfix(acc: &mut Completions, ctx: &CompletionContext) { | |||
180 | ) | 180 | ) |
181 | .add_to(acc); | 181 | .add_to(acc); |
182 | 182 | ||
183 | postfix_snippet(ctx, cap, &dot_receiver, "ok", "Ok(expr)", &format!("Ok({})", receiver_text)) | 183 | postfix_snippet( |
184 | .add_to(acc); | 184 | ctx, |
185 | cap, | ||
186 | &dot_receiver, | ||
187 | "ok", | ||
188 | "Ok(expr)", | ||
189 | &format!("Ok({})", receiver_text) | ||
190 | ) | ||
191 | .add_to(acc); | ||
192 | |||
193 | postfix_snippet( | ||
194 | ctx, | ||
195 | cap, | ||
196 | &dot_receiver, | ||
197 | "err", | ||
198 | "Err(expr)", | ||
199 | &format!("Err({})", receiver_text) | ||
200 | ) | ||
201 | .add_to(acc); | ||
185 | 202 | ||
186 | postfix_snippet( | 203 | postfix_snippet( |
187 | ctx, | 204 | ctx, |