diff options
Diffstat (limited to 'crates/ra_ide_api/src/completion/completion_item.rs')
-rw-r--r-- | crates/ra_ide_api/src/completion/completion_item.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_ide_api/src/completion/completion_item.rs b/crates/ra_ide_api/src/completion/completion_item.rs index 5d6718a8d..5b2ba7e4a 100644 --- a/crates/ra_ide_api/src/completion/completion_item.rs +++ b/crates/ra_ide_api/src/completion/completion_item.rs | |||
@@ -219,6 +219,7 @@ impl Builder { | |||
219 | }; | 219 | }; |
220 | let (kind, docs) = match def { | 220 | let (kind, docs) = match def { |
221 | hir::ModuleDef::Module(_) => (CompletionItemKind::Module, None), | 221 | hir::ModuleDef::Module(_) => (CompletionItemKind::Module, None), |
222 | hir::ModuleDef::Function(func) => return self.from_function(ctx, func), | ||
222 | hir::ModuleDef::Def(def_id) => match def_id.resolve(ctx.db) { | 223 | hir::ModuleDef::Def(def_id) => match def_id.resolve(ctx.db) { |
223 | hir::Def::Struct(it) => (CompletionItemKind::Struct, it.docs(ctx.db)), | 224 | hir::Def::Struct(it) => (CompletionItemKind::Struct, it.docs(ctx.db)), |
224 | hir::Def::Enum(it) => (CompletionItemKind::Enum, it.docs(ctx.db)), | 225 | hir::Def::Enum(it) => (CompletionItemKind::Enum, it.docs(ctx.db)), |
@@ -226,7 +227,6 @@ impl Builder { | |||
226 | hir::Def::Type(it) => (CompletionItemKind::TypeAlias, it.docs(ctx.db)), | 227 | hir::Def::Type(it) => (CompletionItemKind::TypeAlias, it.docs(ctx.db)), |
227 | hir::Def::Const(it) => (CompletionItemKind::Const, it.docs(ctx.db)), | 228 | hir::Def::Const(it) => (CompletionItemKind::Const, it.docs(ctx.db)), |
228 | hir::Def::Static(it) => (CompletionItemKind::Static, it.docs(ctx.db)), | 229 | hir::Def::Static(it) => (CompletionItemKind::Static, it.docs(ctx.db)), |
229 | hir::Def::Function(function) => return self.from_function(ctx, function), | ||
230 | _ => return self, | 230 | _ => return self, |
231 | }, | 231 | }, |
232 | }; | 232 | }; |