From 8a796ecbe4d8edb9c8e67b9fc44028d3778113ab Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Fri, 26 Jun 2026 07:19:44 +0800 Subject: feat(macros): simplify ResultEmpty to a unit struct --- mingling_macros/src/chain.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mingling_macros/src/chain.rs') diff --git a/mingling_macros/src/chain.rs b/mingling_macros/src/chain.rs index 2abf3c1..6191d39 100644 --- a/mingling_macros/src/chain.rs +++ b/mingling_macros/src/chain.rs @@ -83,7 +83,7 @@ fn generate_proc_fn( stmts.push(syn::Stmt::Expr( syn::parse_quote! { > - ::to_chain(crate::ResultEmpty::new(())) + ::to_chain(crate::ResultEmpty) }, None, )); @@ -111,7 +111,7 @@ fn generate_proc_fn( quote! { #call > - ::to_chain(crate::ResultEmpty::new(())) + ::to_chain(crate::ResultEmpty) } } } else if has_resources { @@ -169,7 +169,7 @@ fn generate_original_fn( quote! { { #fn_body - >::to_chain(crate::ResultEmpty::new(())) + >::to_chain(crate::ResultEmpty) } } } else { -- cgit