From 4f0d1f0af93b431e9a8e73229f29ad3856012dbe Mon Sep 17 00:00:00 2001 From: mharkins-cosm <77295012+mharkins-cosm@users.noreply.github.com> Date: Mon, 25 Sep 2023 17:23:17 -0700 Subject: [PATCH] fix(useless vec): clippy + performance fix --- macros/src/actix.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/macros/src/actix.rs b/macros/src/actix.rs index c38139097..41a4aa376 100644 --- a/macros/src/actix.rs +++ b/macros/src/actix.rs @@ -832,7 +832,7 @@ pub fn emit_v2_definition(input: TokenStream) -> TokenStream { quote! { #base_name } } else { let type_names = quote! { - vec![#(#type_params::name()),*] + [#(#type_params::name()),*] .iter() .filter_map(|n| n.to_owned()) .collect::>()