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! {