aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_lsp_server/src/main_loop
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_lsp_server/src/main_loop')
-rw-r--r--crates/ra_lsp_server/src/main_loop/handlers.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_lsp_server/src/main_loop/handlers.rs b/crates/ra_lsp_server/src/main_loop/handlers.rs
index 639fe4553..b0b983d0c 100644
--- a/crates/ra_lsp_server/src/main_loop/handlers.rs
+++ b/crates/ra_lsp_server/src/main_loop/handlers.rs
@@ -238,7 +238,7 @@ pub fn handle_parent_module(
238) -> Result<Vec<Location>> { 238) -> Result<Vec<Location>> {
239 let file_id = params.try_conv_with(&world)?; 239 let file_id = params.try_conv_with(&world)?;
240 let mut res = Vec::new(); 240 let mut res = Vec::new();
241 for (file_id, symbol) in world.analysis().parent_module(file_id) { 241 for (file_id, symbol) in world.analysis().parent_module(file_id)? {
242 let line_index = world.analysis().file_line_index(file_id); 242 let line_index = world.analysis().file_line_index(file_id);
243 let location = to_location(file_id, symbol.node_range, &world, &line_index)?; 243 let location = to_location(file_id, symbol.node_range, &world, &line_index)?;
244 res.push(location); 244 res.push(location);