diff options
author | Lukas Wirth <[email protected]> | 2021-01-18 20:10:01 +0000 |
---|---|---|
committer | Lukas Wirth <[email protected]> | 2021-01-18 20:10:01 +0000 |
commit | e31420fbe2986884783c2baba02b34003cc3b28a (patch) | |
tree | 4a90342e93e528b9807a1528b263a8e6d5887326 /crates/ide/src/lib.rs | |
parent | 342bf41022fa78856a48560b521ea32aa76f6f06 (diff) |
Remove obsolete RangeInfo usage in references
Diffstat (limited to 'crates/ide/src/lib.rs')
-rw-r--r-- | crates/ide/src/lib.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/crates/ide/src/lib.rs b/crates/ide/src/lib.rs index 3abbb14c6..567b8117e 100644 --- a/crates/ide/src/lib.rs +++ b/crates/ide/src/lib.rs | |||
@@ -369,9 +369,7 @@ impl Analysis { | |||
369 | position: FilePosition, | 369 | position: FilePosition, |
370 | search_scope: Option<SearchScope>, | 370 | search_scope: Option<SearchScope>, |
371 | ) -> Cancelable<Option<ReferenceSearchResult>> { | 371 | ) -> Cancelable<Option<ReferenceSearchResult>> { |
372 | self.with_db(|db| { | 372 | self.with_db(|db| references::find_all_refs(&Semantics::new(db), position, search_scope)) |
373 | references::find_all_refs(&Semantics::new(db), position, search_scope).map(|it| it.info) | ||
374 | }) | ||
375 | } | 373 | } |
376 | 374 | ||
377 | /// Finds all methods and free functions for the file. Does not return tests! | 375 | /// Finds all methods and free functions for the file. Does not return tests! |