From 79f61dcb0e3de873c4685c9abaaf4ec5af748000 Mon Sep 17 00:00:00 2001 From: Jeremy Kolb Date: Mon, 4 Mar 2019 08:34:41 -0500 Subject: [PATCH] Format --- crates/ra_ide_api/src/navigation_target.rs | 9 ++------- 1 file 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 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)