Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide-completion/src/render/literal.rs')
-rw-r--r--crates/ide-completion/src/render/literal.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/crates/ide-completion/src/render/literal.rs b/crates/ide-completion/src/render/literal.rs
index eb03e27cd9..9e0cec62e6 100644
--- a/crates/ide-completion/src/render/literal.rs
+++ b/crates/ide-completion/src/render/literal.rs
@@ -20,7 +20,7 @@ use crate::{
};
pub(crate) fn render_variant_lit(
- ctx: RenderContext<'_>,
+ ctx: RenderContext<'_, '_>,
path_ctx: &PathCompletionCtx<'_>,
local_name: Option<hir::Name>,
variant: hir::EnumVariant,
@@ -34,7 +34,7 @@ pub(crate) fn render_variant_lit(
}
pub(crate) fn render_struct_literal(
- ctx: RenderContext<'_>,
+ ctx: RenderContext<'_, '_>,
path_ctx: &PathCompletionCtx<'_>,
strukt: hir::Struct,
path: Option<hir::ModPath>,
@@ -48,7 +48,7 @@ pub(crate) fn render_struct_literal(
}
fn render(
- ctx @ RenderContext { completion, .. }: RenderContext<'_>,
+ ctx @ RenderContext { completion, .. }: RenderContext<'_, '_>,
path_ctx: &PathCompletionCtx<'_>,
thing: Variant,
name: hir::Name,
@@ -154,7 +154,7 @@ enum Variant {
}
impl Variant {
- fn fields(self, ctx: &CompletionContext<'_>) -> Option<Vec<hir::Field>> {
+ fn fields(self, ctx: &CompletionContext<'_, '_>) -> Option<Vec<hir::Field>> {
let fields = match self {
Variant::Struct(it) => it.fields(ctx.db),
Variant::EnumVariant(it) => it.fields(ctx.db),
@@ -187,7 +187,7 @@ impl Variant {
}
}
- fn is_deprecated(self, ctx: &RenderContext<'_>) -> bool {
+ fn is_deprecated(self, ctx: &RenderContext<'_, '_>) -> bool {
match self {
Variant::Struct(it) => {
ctx.is_deprecated(it, None /* structs can't be assoc items */)