diff --git a/crates/ra_lsp_server/src/main_loop/handlers.rs b/crates/ra_lsp_server/src/main_loop/handlers.rs index 9cdca82c4fe..8f9db68a2f1 100644 --- a/crates/ra_lsp_server/src/main_loop/handlers.rs +++ b/crates/ra_lsp_server/src/main_loop/handlers.rs @@ -465,14 +465,15 @@ pub fn handle_rename(world: ServerWorld, params: RenameParams) -> Result return Ok(None), + Some(it) => it, + }; - let source_change_req = change.unwrap().try_conv_with(&world)?; + let source_change_req = change.try_conv_with(&world)?; Ok(Some(source_change_req.workspace_edit)) }