mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-13 13:57:25 +00:00
Fix incorrect references annotation
This commit is contained in:
parent
185da286d2
commit
02ad828c6d
1 changed files with 3 additions and 2 deletions
|
@ -129,9 +129,10 @@ pub(crate) fn resolve_annotation(db: &RootDatabase, mut annotation: Annotation)
|
|||
result
|
||||
.references
|
||||
.into_iter()
|
||||
.map(|(_, access)| access.into_iter())
|
||||
.map(|(file_id, access)| {
|
||||
access.into_iter().map(move |(range, _)| FileRange { file_id, range })
|
||||
})
|
||||
.flatten()
|
||||
.map(|(range, _)| FileRange { file_id: position.file_id, range })
|
||||
.collect()
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue