From 2d9acfb118e082dbbbd4940830d735f92119a7fe Mon Sep 17 00:00:00 2001 From: kjeremy Date: Mon, 2 Mar 2020 14:05:44 -0500 Subject: Simplify by using to_vec --- crates/rust-analyzer/src/caps.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates') 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 { 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)), -- cgit v1.2.3