diff --git a/crates/ide_completion/src/completions/postfix.rs b/crates/ide_completion/src/completions/postfix.rs index 9c34ed0b63..4884a42e2d 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) { ) .add_to(acc); - postfix_snippet(ctx, cap, &dot_receiver, "ok", "Ok(expr)", &format!("Ok({})", receiver_text)) - .add_to(acc); + postfix_snippet( + ctx, + cap, + &dot_receiver, + "ok", + "Ok(expr)", + &format!("Ok({})", receiver_text) + ) + .add_to(acc); + + postfix_snippet( + ctx, + cap, + &dot_receiver, + "err", + "Err(expr)", + &format!("Err({})", receiver_text) + ) + .add_to(acc); postfix_snippet( ctx,