mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
Remove obsolete RangeInfo usage in references
This commit is contained in:
parent
342bf41022
commit
e31420fbe2
3 changed files with 20 additions and 38 deletions
|
@ -369,9 +369,7 @@ impl Analysis {
|
|||
position: FilePosition,
|
||||
search_scope: Option<SearchScope>,
|
||||
) -> Cancelable<Option<ReferenceSearchResult>> {
|
||||
self.with_db(|db| {
|
||||
references::find_all_refs(&Semantics::new(db), position, search_scope).map(|it| it.info)
|
||||
})
|
||||
self.with_db(|db| references::find_all_refs(&Semantics::new(db), position, search_scope))
|
||||
}
|
||||
|
||||
/// Finds all methods and free functions for the file. Does not return tests!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue