style(clippy): Remove unneeded allocation

This commit is contained in:
Jade Ellis 2025-11-10 22:29:09 +00:00 committed by Ellis Git
parent 35320cf0d4
commit fe62c39501

View file

@ -25,13 +25,13 @@ pub(super) fn refutable(mut item: ItemFn, _args: &[Meta]) -> Result<TokenStream>
};
let name = format!("_args_{i}");
*pat = Box::new(Pat::Ident(PatIdent {
**pat = Pat::Ident(PatIdent {
ident: Ident::new(&name, Span::call_site().into()),
attrs: Vec::new(),
by_ref: None,
mutability: None,
subpat: None,
}));
});
let field = fields.iter();
let refute = quote! {