mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-23 21:23:20 +00:00
Fix incorrect references annotation
This commit is contained in:
parent
185da286d2
commit
02ad828c6d
@ -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…
Reference in New Issue
Block a user