refactor: check for is_none
Co-authored-by: TornaxO7 <tornax@proton.me>
This commit is contained in:
parent
5f59c191f5
commit
54ff7a561f
1 changed files with 2 additions and 3 deletions
|
@ -1120,9 +1120,8 @@ impl Client {
|
||||||
text_document: lsp::TextDocumentIdentifier,
|
text_document: lsp::TextDocumentIdentifier,
|
||||||
work_done_token: Option<lsp::ProgressToken>,
|
work_done_token: Option<lsp::ProgressToken>,
|
||||||
) -> Option<impl Future<Output = Result<Value>>> {
|
) -> Option<impl Future<Output = Result<Value>>> {
|
||||||
match self.capabilities.get().unwrap().color_provider {
|
if self.capabilities.get().unwrap().color_provider.is_none() {
|
||||||
Some(_) => (),
|
return None;
|
||||||
_ => return None,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
let params = lsp::DocumentColorParams {
|
let params = lsp::DocumentColorParams {
|
||||||
|
|
Loading…
Add table
Reference in a new issue