Skip to content

Commit

Permalink
chore: apply suggestions from clippy lint
Browse files Browse the repository at this point in the history
  • Loading branch information
nik-rev committed Dec 23, 2024
1 parent d120a35 commit efca472
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions helix-lsp/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1120,9 +1120,12 @@ impl Client {
text_document: lsp::TextDocumentIdentifier,
work_done_token: Option<lsp::ProgressToken>,
) -> Option<impl Future<Output = Result<Value>>> {
if self.capabilities.get().unwrap().color_provider.is_none() {
return None;
}
self.capabilities
.get()
.unwrap()
.color_provider
.is_none()
.as_ref()?;

let params = lsp::DocumentColorParams {
text_document,
Expand Down

0 comments on commit efca472

Please sign in to comment.