diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-01-18 20:25:26 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2021-01-18 20:25:26 +0000 |
commit | bf889bcf3be44720ca1c26fccec0374dfc7f3763 (patch) | |
tree | d4c7561aaf81d00ffb7f19c9672c2e3876564fd3 /crates/ide/src/lib.rs | |
parent | 0791c8e44c6fd1e7519df003dcb8c9e156916f46 (diff) | |
parent | e31420fbe2986884783c2baba02b34003cc3b28a (diff) |
Merge #7340
7340: Remove obsolete RangeInfo usage in references r=Veykril a=Veykril
Didn't even realize these were only here for renaming as well!
bors r+
Co-authored-by: Lukas Wirth <[email protected]>
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! |