aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Kolb <[email protected]>2019-03-04 13:34:41 +0000
committerJeremy Kolb <[email protected]>2019-03-04 13:34:41 +0000
commit79f61dcb0e3de873c4685c9abaaf4ec5af748000 (patch)
treebf271a0a2c67f807361bc13c13fa6cf40aad5893
parente1b59bfe0b00157a97f167b4857418b914ec1fd3 (diff)
Format
-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)