diff options
author | Edwin Cheng <[email protected]> | 2019-11-09 04:00:46 +0000 |
---|---|---|
committer | Edwin Cheng <[email protected]> | 2019-11-09 04:00:46 +0000 |
commit | 0a5ec69404a2556dd82e5bb00b295aebaa291f04 (patch) | |
tree | 1ae5ae1ef0ca23dc917d845312c6753d9b46b1ab /crates/ra_ide_api/src/display | |
parent | d01e0abdb57c5be340934cb51e2f6b1a2e6c0373 (diff) |
Remove map_ranges in RevTokenMap
Diffstat (limited to 'crates/ra_ide_api/src/display')
-rw-r--r-- | crates/ra_ide_api/src/display/navigation_target.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_ide_api/src/display/navigation_target.rs b/crates/ra_ide_api/src/display/navigation_target.rs index b77e19231..1bf81e7d5 100644 --- a/crates/ra_ide_api/src/display/navigation_target.rs +++ b/crates/ra_ide_api/src/display/navigation_target.rs | |||
@@ -36,7 +36,7 @@ fn find_range_from_node( | |||
36 | ) -> (FileId, TextRange) { | 36 | ) -> (FileId, TextRange) { |
37 | let text_range = node.text_range(); | 37 | let text_range = node.text_range(); |
38 | let (file_id, text_range) = src | 38 | let (file_id, text_range) = src |
39 | .parent_expansion(db) | 39 | .expansion_info(db) |
40 | .and_then(|expansion_info| expansion_info.find_range(text_range)) | 40 | .and_then(|expansion_info| expansion_info.find_range(text_range)) |
41 | .unwrap_or((src, text_range)); | 41 | .unwrap_or((src, text_range)); |
42 | 42 | ||