diff --git a/macro/src/lib.rs b/macro/src/lib.rs index 19471da3..5297fe6c 100644 --- a/macro/src/lib.rs +++ b/macro/src/lib.rs @@ -383,7 +383,6 @@ fn map_method_or_fn( .zip(arg_tys.iter()) .map(|(ident, ty)| { parse_quote! { - #(#attrs)* pub #ident: #ty } }) @@ -769,6 +768,7 @@ fn generic_params_map<'a, 'b>( .collect() } +#[allow(clippy::type_complexity)] fn map_args<'a, I>( conversions: &mut Conversions, candidates: &mut BTreeSet, @@ -1057,7 +1057,7 @@ fn args_from_autos(idents: &[Ident], autos: &[Expr]) -> Expr { let ident = &idents[i]; let i = Literal::usize_unsuffixed(i); parse_quote! { - #ident: &autos.#i[(i + #i) % lens[#i]].clone() + #ident: autos.#i[(i + #i) % lens[#i]].clone() } }) .collect();