From 4e163438f9d9af83c1492826acf742337ec147c9 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Wed, 12 Aug 2026 02:34:39 +0800 Subject: fix: suppress future_not_send lint and tighten Send bounds Add `#[allow(clippy::future_not_send)]` to chain invocation methods and clarify Send requirements for `exec` bounds. --- mingling_core/src/asset/core_invokes.rs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'mingling_core/src/asset/core_invokes.rs') diff --git a/mingling_core/src/asset/core_invokes.rs b/mingling_core/src/asset/core_invokes.rs index 07e5092..705568b 100644 --- a/mingling_core/src/asset/core_invokes.rs +++ b/mingling_core/src/asset/core_invokes.rs @@ -135,6 +135,9 @@ where /// /// It will not execute any program hooks, because this type is used for **bypassing** or **reusing**, not for flow control. #[might_be_async::func] + #[allow(clippy::future_not_send)] + // The generated future is only awaited within the single-threaded chain + // execution, so it does not need to be `Send`. pub fn invoke_once(&self, value: T) -> ChainProcess where C: ProgramCollect + 'static, @@ -165,6 +168,9 @@ where /// /// It will not execute any program hooks, because this type is used for **bypassing** or **reusing**, not for flow control. #[might_be_async::func] + // The generated future is only awaited within the single-threaded chain + // execution, so it does not need to be `Send`. + #[allow(clippy::future_not_send)] pub fn invoke_to_last(&self, value: T) -> ChainProcess where C: ProgramCollect + 'static, @@ -207,6 +213,9 @@ where /// /// It will not execute any program hooks, because this type is used for **bypassing** or **reusing**, not for flow control. #[might_be_async::func] + #[allow(clippy::future_not_send)] + // The generated future is only awaited within the single-threaded chain + // execution, so it does not need to be `Send`. pub fn invoke_to_result(&self, value: T) -> RenderResult where C: ProgramCollect + 'static, -- cgit