mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-14 14:13:58 +00:00
Merge #3408
3408: Simplify by using to_vec r=kiljacken a=kjeremy Co-authored-by: kjeremy <kjeremy@gmail.com>
This commit is contained in:
commit
39a9e42bf8
1 changed files with 2 additions and 2 deletions
|
@ -63,8 +63,8 @@ pub fn server_capabilities() -> ServerCapabilities {
|
|||
semantic_tokens_provider: Some(
|
||||
SemanticTokensOptions {
|
||||
legend: SemanticTokensLegend {
|
||||
token_types: semantic_tokens::SUPPORTED_TYPES.iter().cloned().collect(),
|
||||
token_modifiers: semantic_tokens::SUPPORTED_MODIFIERS.iter().cloned().collect(),
|
||||
token_types: semantic_tokens::SUPPORTED_TYPES.to_vec(),
|
||||
token_modifiers: semantic_tokens::SUPPORTED_MODIFIERS.to_vec(),
|
||||
},
|
||||
|
||||
document_provider: Some(SemanticTokensDocumentProvider::Bool(true)),
|
||||
|
|
Loading…
Reference in a new issue