@@ -384,13 +384,11 @@ impl Client {
384384 let capabilities = self.capabilities.as_ref().unwrap();
385385
386386 let sync_capabilities = match capabilities.text_document_sync {
387− Some(
388− lsp::TextDocumentSyncCapability::Kind(kind)
389− | lsp::TextDocumentSyncCapability::Options(lsp::TextDocumentSyncOptions {
390− change: Some(kind),
391− ..
392− }),
393− ) => kind,
387+ Some(lsp::TextDocumentSyncCapability::Kind(kind))
388+ | Some(lsp::TextDocumentSyncCapability::Options(lsp::TextDocumentSyncOptions {
389+ change: Some(kind),
390+ ..
391+ })) => kind,
394392 // None | SyncOptions { changes: None }
395393 _ => return Ok(()),
396394 };
@@ -540,7 +538,7 @@ impl Client {
540538
541539 // check if we're able to format
542540 match capabilities.document_formatting_provider {
543− Some(lsp::OneOf::Left(true) | lsp::OneOf::Right(_)) => (),
541+ Some(lsp::OneOf::Left(true)) | Some(lsp::OneOf::Right(_)) => (),
544542 // None | Some(false)
545543 _ => return Ok(Vec::new()),
546544 };
@@ -569,7 +567,7 @@ impl Client {
569567
570568 // check if we're able to format
571569 match capabilities.document_range_formatting_provider {
572− Some(lsp::OneOf::Left(true) | lsp::OneOf::Right(_)) => (),
570+ Some(lsp::OneOf::Left(true)) | Some(lsp::OneOf::Right(_)) => (),
573571 // None | Some(false)
574572 _ => return Ok(Vec::new()),
575573 };