mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 13:03:31 +00:00
Format
This commit is contained in:
parent
e1b59bfe0b
commit
79f61dcb0e
1 changed files with 2 additions and 7 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue