Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide-completion/src/completions/postfix.rs')
-rw-r--r--crates/ide-completion/src/completions/postfix.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/ide-completion/src/completions/postfix.rs b/crates/ide-completion/src/completions/postfix.rs
index 8a754a6b27..5966bfcd63 100644
--- a/crates/ide-completion/src/completions/postfix.rs
+++ b/crates/ide-completion/src/completions/postfix.rs
@@ -31,7 +31,7 @@ use crate::{
pub(crate) fn complete_postfix(
acc: &mut Completions,
- ctx: &CompletionContext<'_>,
+ ctx: &CompletionContext<'_, '_>,
dot_access: &DotAccess<'_>,
) {
if !ctx.config.enable_postfix_completions {
@@ -479,7 +479,7 @@ fn include_references(initial_element: &ast::Expr) -> (ast::Expr, String) {
}
fn build_postfix_snippet_builder<'ctx>(
- ctx: &'ctx CompletionContext<'_>,
+ ctx: &'ctx CompletionContext<'_, '_>,
cap: SnippetCap,
receiver: &'ctx ast::Expr,
) -> Option<impl Fn(&str, &str, String) -> Builder + 'ctx> {
@@ -495,7 +495,7 @@ fn build_postfix_snippet_builder<'ctx>(
// Wrapping impl Fn in an option ruins lifetime inference for the parameters in a way that
// can't be annotated for the closure, hence fix it by constructing it without the Option first
fn build<'ctx>(
- ctx: &'ctx CompletionContext<'_>,
+ ctx: &'ctx CompletionContext<'_, '_>,
cap: SnippetCap,
delete_range: TextRange,
) -> impl Fn(&str, &str, String) -> Builder + 'ctx {
@@ -525,7 +525,7 @@ fn build_postfix_snippet_builder<'ctx>(
fn add_custom_postfix_completions(
acc: &mut Completions,
- ctx: &CompletionContext<'_>,
+ ctx: &CompletionContext<'_, '_>,
postfix_snippet: impl Fn(&str, &str, String) -> Builder,
receiver_text: &str,
) -> Option<()> {