diff --git a/cli/lsp/language_server.rs b/cli/lsp/language_server.rs index 80b93d3bfc..344e8c0345 100644 --- a/cli/lsp/language_server.rs +++ b/cli/lsp/language_server.rs @@ -325,9 +325,8 @@ impl Inner { let maybe_config = crate::config_file::discover_from(&root_path, &mut checked)?; Ok(maybe_config.map(|c| { - let s = c.specifier.clone(); - lsp_log!(" Auto-resolved configuration file: \"{}\"", s); - (c, s) + lsp_log!(" Auto-resolved configuration file: \"{}\"", c.specifier); + c })) } else { Ok(None)