From ad4276ac057a940617e757f67c2d0d164599b6a6 Mon Sep 17 00:00:00 2001 From: Jeremy Kolb Date: Thu, 4 Jul 2019 16:52:29 -0400 Subject: Change default() --- crates/ra_lsp_server/src/main_loop/handlers.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates') diff --git a/crates/ra_lsp_server/src/main_loop/handlers.rs b/crates/ra_lsp_server/src/main_loop/handlers.rs index aea94ad0d..49c3055f3 100644 --- a/crates/ra_lsp_server/src/main_loop/handlers.rs +++ b/crates/ra_lsp_server/src/main_loop/handlers.rs @@ -665,7 +665,7 @@ pub fn handle_code_action( let assists = world.analysis().assists(FileRange { file_id, range })?.into_iter(); let diagnostics = world.analysis().diagnostics(file_id)?; - let mut res: CodeActionResponse = Default::default(); + let mut res = CodeActionResponse::default(); let fixes_from_diagnostics = diagnostics .into_iter() -- cgit v1.2.3