diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-05-24 18:20:34 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-05-24 18:20:34 +0800 |
| commit | 979e881762a728661e72efd99bc2b35b3db8c71b (patch) | |
| tree | e4866204297693f9472de64288a693590114cce8 /mingling_macros | |
| parent | 0d3639016ac89ca3c6d7a8d2c8aa3b7656069e4e (diff) | |
Require explicit import of `crate::Next` in chained functions
Diffstat (limited to 'mingling_macros')
| -rw-r--r-- | mingling_macros/src/chain.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/mingling_macros/src/chain.rs b/mingling_macros/src/chain.rs index 9666c51..559468c 100644 --- a/mingling_macros/src/chain.rs +++ b/mingling_macros/src/chain.rs @@ -183,7 +183,13 @@ fn generate_original_fn( } } } else { - quote! { #fn_body } + quote! { + { + let _: crate::Next; + let _: Next; + #fn_body + } + } }; #[cfg(feature = "async")] |
