From b28ca32db22d5e2ed34db556c6fd50a5fc2d679c Mon Sep 17 00:00:00 2001 From: Alan Du Date: Mon, 3 Jun 2019 10:27:51 -0400 Subject: Fix clippy::or_fun_call --- crates/ra_lsp_server/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/ra_lsp_server/src') diff --git a/crates/ra_lsp_server/src/main.rs b/crates/ra_lsp_server/src/main.rs index b0b70df5c..a0df32dde 100644 --- a/crates/ra_lsp_server/src/main.rs +++ b/crates/ra_lsp_server/src/main.rs @@ -49,7 +49,7 @@ fn main_inner() -> Result<()> { let opts = params .initialization_options .and_then(|v| InitializationOptions::deserialize(v).ok()) - .unwrap_or(InitializationOptions::default()); + .unwrap_or_default(); ra_lsp_server::main_loop(workspace_roots, opts, r, s) })?; -- cgit v1.2.3