mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-05-26 20:49:55 +00:00
style(clippy): Remove unneeded allocation
This commit is contained in:
@@ -25,13 +25,13 @@ pub(super) fn refutable(mut item: ItemFn, _args: &[Meta]) -> Result<TokenStream>
|
|||||||
};
|
};
|
||||||
|
|
||||||
let name = format!("_args_{i}");
|
let name = format!("_args_{i}");
|
||||||
*pat = Box::new(Pat::Ident(PatIdent {
|
**pat = Pat::Ident(PatIdent {
|
||||||
ident: Ident::new(&name, Span::call_site().into()),
|
ident: Ident::new(&name, Span::call_site().into()),
|
||||||
attrs: Vec::new(),
|
attrs: Vec::new(),
|
||||||
by_ref: None,
|
by_ref: None,
|
||||||
mutability: None,
|
mutability: None,
|
||||||
subpat: None,
|
subpat: None,
|
||||||
}));
|
});
|
||||||
|
|
||||||
let field = fields.iter();
|
let field = fields.iter();
|
||||||
let refute = quote! {
|
let refute = quote! {
|
||||||
|
|||||||
Reference in New Issue
Block a user