diff --git a/crates/ra_ide_api/src/navigation_target.rs b/crates/ra_ide_api/src/navigation_target.rs index ff8d2f15ba..d806cb368d 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 { ) } - pub(crate) fn from_impl_item( - db: &RootDatabase, - impl_item: hir::ImplItem, - ) -> NavigationTarget { + pub(crate) fn from_impl_item(db: &RootDatabase, impl_item: hir::ImplItem) -> NavigationTarget { match impl_item { - ImplItem::Method(f) => { - NavigationTarget::from_function(db, f) - } + ImplItem::Method(f) => NavigationTarget::from_function(db, f), ImplItem::Const(c) => { let (file_id, node) = c.source(db); NavigationTarget::from_named(file_id.original_file(db), &*node)