diff options
author | Aleksey Kladov <[email protected]> | 2020-06-24 10:31:30 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-06-24 10:31:30 +0100 |
commit | c749fe223bf5a41709a4bc91d0f56dafc4201658 (patch) | |
tree | 0ed66d422a10a9f192a039565ac70b85dbdf80f8 /crates/ra_ide/src/references.rs | |
parent | c6795fb83a850dde6ac0b08decf108c0c3aa452a (diff) |
Remove duplication
Diffstat (limited to 'crates/ra_ide/src/references.rs')
-rw-r--r-- | crates/ra_ide/src/references.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_ide/src/references.rs b/crates/ra_ide/src/references.rs index 50929bb72..3433fdae3 100644 --- a/crates/ra_ide/src/references.rs +++ b/crates/ra_ide/src/references.rs | |||
@@ -191,7 +191,7 @@ fn get_struct_def_name_for_struct_literal_search( | |||
191 | #[cfg(test)] | 191 | #[cfg(test)] |
192 | mod tests { | 192 | mod tests { |
193 | use crate::{ | 193 | use crate::{ |
194 | mock_analysis::{analysis_and_position, single_file_with_position, MockAnalysis}, | 194 | mock_analysis::{analysis_and_position, MockAnalysis}, |
195 | Declaration, Reference, ReferenceSearchResult, SearchScope, | 195 | Declaration, Reference, ReferenceSearchResult, SearchScope, |
196 | }; | 196 | }; |
197 | 197 | ||
@@ -653,7 +653,7 @@ fn main() { | |||
653 | } | 653 | } |
654 | 654 | ||
655 | fn get_all_refs(ra_fixture: &str) -> ReferenceSearchResult { | 655 | fn get_all_refs(ra_fixture: &str) -> ReferenceSearchResult { |
656 | let (analysis, position) = single_file_with_position(ra_fixture); | 656 | let (analysis, position) = analysis_and_position(ra_fixture); |
657 | analysis.find_all_refs(position, None).unwrap().unwrap() | 657 | analysis.find_all_refs(position, None).unwrap().unwrap() |
658 | } | 658 | } |
659 | 659 | ||