aboutsummaryrefslogtreecommitdiff
path: root/crates/ide_completion/src/render
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2021-04-30 09:52:31 +0100
committerAleksey Kladov <[email protected]>2021-04-30 09:52:31 +0100
commitcb3ef552e873a86e94a3792160fadb5d937a6f5f (patch)
treeb19bf27eb2f6ed299d4095a43a8b618fbf347d7d /crates/ide_completion/src/render
parent49b219b1035e20143818d409404b5e6f19a7ad1d (diff)
internal: normalize name
All def types in hir are unsubstituted
Diffstat (limited to 'crates/ide_completion/src/render')
-rw-r--r--crates/ide_completion/src/render/enum_variant.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ide_completion/src/render/enum_variant.rs b/crates/ide_completion/src/render/enum_variant.rs
index 832f5ced1..0c0c71134 100644
--- a/crates/ide_completion/src/render/enum_variant.rs
+++ b/crates/ide_completion/src/render/enum_variant.rs
@@ -93,7 +93,7 @@ impl<'a> EnumRender<'a> {
93 .variant 93 .variant
94 .fields(self.ctx.db()) 94 .fields(self.ctx.db())
95 .into_iter() 95 .into_iter()
96 .map(|field| (field.name(self.ctx.db()), field.signature_ty(self.ctx.db()))); 96 .map(|field| (field.name(self.ctx.db()), field.ty(self.ctx.db())));
97 97
98 match self.variant_kind { 98 match self.variant_kind {
99 StructKind::Tuple | StructKind::Unit => format!( 99 StructKind::Tuple | StructKind::Unit => format!(