mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
use Source for impl block
This commit is contained in:
parent
f411c2988d
commit
a6e339e822
5 changed files with 20 additions and 17 deletions
|
@ -228,12 +228,12 @@ impl NavigationTarget {
|
|||
db: &RootDatabase,
|
||||
impl_block: hir::ImplBlock,
|
||||
) -> NavigationTarget {
|
||||
let (file_id, node) = impl_block.source(db);
|
||||
let src = impl_block.source(db);
|
||||
NavigationTarget::from_syntax(
|
||||
file_id.as_original_file(),
|
||||
src.file_id.as_original_file(),
|
||||
"impl".into(),
|
||||
None,
|
||||
node.syntax(),
|
||||
src.ast.syntax(),
|
||||
None,
|
||||
None,
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue