diff options
author | kjeremy <[email protected]> | 2020-03-02 19:05:44 +0000 |
---|---|---|
committer | kjeremy <[email protected]> | 2020-03-02 19:05:44 +0000 |
commit | 2d9acfb118e082dbbbd4940830d735f92119a7fe (patch) | |
tree | 36d794f2bc276b3773f76afcb1649d6b5fa71539 /crates | |
parent | a484e9c7307377ffdf55ac25b9622dee14a97453 (diff) |
Simplify by using to_vec
Diffstat (limited to 'crates')
-rw-r--r-- | crates/rust-analyzer/src/caps.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/rust-analyzer/src/caps.rs b/crates/rust-analyzer/src/caps.rs index 759bceb32..45b60768a 100644 --- a/crates/rust-analyzer/src/caps.rs +++ b/crates/rust-analyzer/src/caps.rs | |||
@@ -63,8 +63,8 @@ pub fn server_capabilities() -> ServerCapabilities { | |||
63 | semantic_tokens_provider: Some( | 63 | semantic_tokens_provider: Some( |
64 | SemanticTokensOptions { | 64 | SemanticTokensOptions { |
65 | legend: SemanticTokensLegend { | 65 | legend: SemanticTokensLegend { |
66 | token_types: semantic_tokens::SUPPORTED_TYPES.iter().cloned().collect(), | 66 | token_types: semantic_tokens::SUPPORTED_TYPES.to_vec(), |
67 | token_modifiers: semantic_tokens::SUPPORTED_MODIFIERS.iter().cloned().collect(), | 67 | token_modifiers: semantic_tokens::SUPPORTED_MODIFIERS.to_vec(), |
68 | }, | 68 | }, |
69 | 69 | ||
70 | document_provider: Some(SemanticTokensDocumentProvider::Bool(true)), | 70 | document_provider: Some(SemanticTokensDocumentProvider::Bool(true)), |