From fe62c3950159cc5bcb53fbea0f6fc49913d1b3a3 Mon Sep 17 00:00:00 2001 From: Jade Ellis Date: Mon, 10 Nov 2025 22:29:09 +0000 Subject: [PATCH] style(clippy): Remove unneeded allocation --- src/macros/refutable.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/macros/refutable.rs b/src/macros/refutable.rs index acfc4cd5..ec083f5b 100644 --- a/src/macros/refutable.rs +++ b/src/macros/refutable.rs @@ -25,13 +25,13 @@ pub(super) fn refutable(mut item: ItemFn, _args: &[Meta]) -> Result }; 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! {