diff options
Diffstat (limited to 'mingling_macros/src/chain.rs')
| -rw-r--r-- | mingling_macros/src/chain.rs | 6 |
1 files changed, 3 insertions, 3 deletions
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! { <crate::ResultEmpty as ::mingling::Groupped::<crate::ThisProgram>> - ::to_chain(crate::ResultEmpty::new(())) + ::to_chain(crate::ResultEmpty) }, None, )); @@ -111,7 +111,7 @@ fn generate_proc_fn( quote! { #call <crate::ResultEmpty as ::mingling::Groupped::<crate::ThisProgram>> - ::to_chain(crate::ResultEmpty::new(())) + ::to_chain(crate::ResultEmpty) } } } else if has_resources { @@ -169,7 +169,7 @@ fn generate_original_fn( quote! { { #fn_body - <crate::ResultEmpty as ::mingling::Groupped::<crate::ThisProgram>>::to_chain(crate::ResultEmpty::new(())) + <crate::ResultEmpty as ::mingling::Groupped::<crate::ThisProgram>>::to_chain(crate::ResultEmpty) } } } else { |
