From ebb40c7f87d58fb74c8f3b4dfcb2704140599d65 Mon Sep 17 00:00:00 2001 From: Muhammad Mominul Huque Date: Sat, 15 Jun 2019 13:37:15 +0600 Subject: cargo format --- crates/ra_lsp_server/src/main_loop.rs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'crates/ra_lsp_server/src') diff --git a/crates/ra_lsp_server/src/main_loop.rs b/crates/ra_lsp_server/src/main_loop.rs index fe6b360d4..aeb8a2299 100644 --- a/crates/ra_lsp_server/src/main_loop.rs +++ b/crates/ra_lsp_server/src/main_loop.rs @@ -399,8 +399,7 @@ fn on_notification( Ok(mut params) => { let uri = params.text_document.uri; let path = uri.to_file_path().map_err(|()| format!("invalid uri: {}", uri))?; - let text = - params.content_changes.pop().ok_or_else(|| format!("empty changes"))?.text; + let text = params.content_changes.pop().ok_or_else(|| format!("empty changes"))?.text; state.vfs.write().change_file_overlay(path.as_path(), text); return Ok(()); } @@ -548,11 +547,7 @@ where error: None, } } else { - RawResponse::err( - id, - ErrorCode::InternalError as i32, - e.to_string() - ) + RawResponse::err(id, ErrorCode::InternalError as i32, e.to_string()) } } }, -- cgit v1.2.3