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/navigation_target.rs9
1 files changed, 2 insertions, 7 deletions
diff --git a/crates/ra_ide_api/src/navigation_target.rs b/crates/ra_ide_api/src/navigation_target.rs
index ff8d2f15b..d806cb368 100644
--- a/crates/ra_ide_api/src/navigation_target.rs
+++ b/crates/ra_ide_api/src/navigation_target.rs
@@ -174,14 +174,9 @@ impl NavigationTarget {
174 ) 174 )
175 } 175 }
176 176
177 pub(crate) fn from_impl_item( 177 pub(crate) fn from_impl_item(db: &RootDatabase, impl_item: hir::ImplItem) -> NavigationTarget {
178 db: &RootDatabase,
179 impl_item: hir::ImplItem,
180 ) -> NavigationTarget {
181 match impl_item { 178 match impl_item {
182 ImplItem::Method(f) => { 179 ImplItem::Method(f) => NavigationTarget::from_function(db, f),
183 NavigationTarget::from_function(db, f)
184 }
185 ImplItem::Const(c) => { 180 ImplItem::Const(c) => {
186 let (file_id, node) = c.source(db); 181 let (file_id, node) = c.source(db);
187 NavigationTarget::from_named(file_id.original_file(db), &*node) 182 NavigationTarget::from_named(file_id.original_file(db), &*node)