aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_api
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_ide_api')
-rw-r--r--crates/ra_ide_api/src/completion/completion_item.rs1
-rw-r--r--crates/ra_ide_api/src/navigation_target.rs1
2 files changed, 0 insertions, 2 deletions
diff --git a/crates/ra_ide_api/src/completion/completion_item.rs b/crates/ra_ide_api/src/completion/completion_item.rs
index 4e679281c..3ba6c33ee 100644
--- a/crates/ra_ide_api/src/completion/completion_item.rs
+++ b/crates/ra_ide_api/src/completion/completion_item.rs
@@ -227,7 +227,6 @@ impl Builder {
227 hir::ModuleDef::Static(it) => (CompletionItemKind::Static, it.docs(ctx.db)), 227 hir::ModuleDef::Static(it) => (CompletionItemKind::Static, it.docs(ctx.db)),
228 hir::ModuleDef::Trait(it) => (CompletionItemKind::Trait, it.docs(ctx.db)), 228 hir::ModuleDef::Trait(it) => (CompletionItemKind::Trait, it.docs(ctx.db)),
229 hir::ModuleDef::Type(it) => (CompletionItemKind::TypeAlias, it.docs(ctx.db)), 229 hir::ModuleDef::Type(it) => (CompletionItemKind::TypeAlias, it.docs(ctx.db)),
230 hir::ModuleDef::Def(_) => return self,
231 }; 230 };
232 self.kind = Some(kind); 231 self.kind = Some(kind);
233 self.documentation = docs; 232 self.documentation = docs;
diff --git a/crates/ra_ide_api/src/navigation_target.rs b/crates/ra_ide_api/src/navigation_target.rs
index 2e11d2de3..c5be8e01b 100644
--- a/crates/ra_ide_api/src/navigation_target.rs
+++ b/crates/ra_ide_api/src/navigation_target.rs
@@ -107,7 +107,6 @@ impl NavigationTarget {
107 module_def: hir::ModuleDef, 107 module_def: hir::ModuleDef,
108 ) -> Option<NavigationTarget> { 108 ) -> Option<NavigationTarget> {
109 match module_def { 109 match module_def {
110 hir::ModuleDef::Def(_) => return None,
111 hir::ModuleDef::Module(module) => Some(NavigationTarget::from_module(db, module)), 110 hir::ModuleDef::Module(module) => Some(NavigationTarget::from_module(db, module)),
112 hir::ModuleDef::Function(func) => Some(NavigationTarget::from_function(db, func)), 111 hir::ModuleDef::Function(func) => Some(NavigationTarget::from_function(db, func)),
113 hir::ModuleDef::Struct(s) => { 112 hir::ModuleDef::Struct(s) => {