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/program/hook.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'mingling_core/src/program/hook.rs') diff --git a/mingling_core/src/program/hook.rs b/mingling_core/src/program/hook.rs index 0bcc051..6f468b3 100644 --- a/mingling_core/src/program/hook.rs +++ b/mingling_core/src/program/hook.rs @@ -737,6 +737,16 @@ mod tests { unreachable!() } + #[cfg(feature = "async")] + fn do_chain( + _any: crate::AnyOutput, + ) -> std::pin::Pin< + Box> + Send + 'static>, + > { + Box::pin(async { unreachable!() }) + } + + #[cfg(not(feature = "async"))] fn do_chain(_any: crate::AnyOutput) -> crate::ChainProcess { unreachable!() } -- cgit