@@ -271,8 +271,8 @@ impl Client {
271271 // -------------------------------------------------------------------------------------------
272272
273273 pub(crate) async fn initialize(&self) -> Result<lsp::InitializeResult> {
274− if self.config.is_some() {
275− log::info!("Using custom LSP config: {}", self.config.as_ref().unwrap());
274+ if let Some(config) = &self.config {
275+ log::info!("Using custom LSP config: {}", config);
276276 }
277277
278278 #[allow(deprecated)]
@@ -896,8 +896,8 @@ impl Client {
896896 Some(lsp::OneOf::Left(true)) | Some(lsp::OneOf::Right(_)) => (),
897897 // None | Some(false)
898898 _ => {
899+ log::warn!("rename_symbol failed: The server does not support rename");
899900 let err = "The server does not support rename";
900− log::warn!("rename_symbol failed: {}", err);
901901 return Err(anyhow!(err));
902902 }
903903 };