aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_lsp_server/src/conv.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_lsp_server/src/conv.rs')
-rw-r--r--crates/ra_lsp_server/src/conv.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/crates/ra_lsp_server/src/conv.rs b/crates/ra_lsp_server/src/conv.rs
index 17fa07340..981385466 100644
--- a/crates/ra_lsp_server/src/conv.rs
+++ b/crates/ra_lsp_server/src/conv.rs
@@ -169,10 +169,7 @@ impl ConvWith for TextEdit {
169 type Output = Vec<lsp_types::TextEdit>; 169 type Output = Vec<lsp_types::TextEdit>;
170 170
171 fn conv_with(self, line_index: &LineIndex) -> Vec<lsp_types::TextEdit> { 171 fn conv_with(self, line_index: &LineIndex) -> Vec<lsp_types::TextEdit> {
172 self.as_atoms() 172 self.as_atoms().iter().map_conv_with(line_index).collect()
173 .into_iter()
174 .map_conv_with(line_index)
175 .collect()
176 } 173 }
177} 174}
178 175
@@ -394,7 +391,7 @@ pub fn to_location_link(
394 origin_selection_range: Some(target.range.conv_with(line_index)), 391 origin_selection_range: Some(target.range.conv_with(line_index)),
395 target_uri, 392 target_uri,
396 target_range, 393 target_range,
397 target_selection_range: target_selection_range, 394 target_selection_range,
398 }; 395 };
399 Ok(res) 396 Ok(res)
400} 397}