Skip to content

Commit

Permalink
fix(useless-vec): clippy + performance fix (#511)
Browse files Browse the repository at this point in the history
  • Loading branch information
mharkins-cosm authored Sep 28, 2023
1 parent 9efafd0 commit 6032584
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion macros/src/actix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<Vec<String>>()
Expand Down

0 comments on commit 6032584

Please sign in to comment.