aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-03-02 19:51:32 +0000
committerGitHub <[email protected]>2020-03-02 19:51:32 +0000
commit39a9e42bf8d363e83d92bedf0ad07e95a42b1602 (patch)
tree36d794f2bc276b3773f76afcb1649d6b5fa71539
parenta484e9c7307377ffdf55ac25b9622dee14a97453 (diff)
parent2d9acfb118e082dbbbd4940830d735f92119a7fe (diff)
Merge #3408
3408: Simplify by using to_vec r=kiljacken a=kjeremy Co-authored-by: kjeremy <[email protected]>
-rw-r--r--crates/rust-analyzer/src/caps.rs4
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)),