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/exec.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mingling_core/src/program/exec.rs') diff --git a/mingling_core/src/program/exec.rs b/mingling_core/src/program/exec.rs index df42249..5948cfe 100644 --- a/mingling_core/src/program/exec.rs +++ b/mingling_core/src/program/exec.rs @@ -12,7 +12,7 @@ pub mod error; #[might_be_async::func] pub fn exec(program: &'static Program) -> Result where - C: ProgramCollect, + C: ProgramCollect + Send + Sync, { might_be_async::invoke!(exec_with_args(program, &program.args)) } @@ -23,7 +23,7 @@ pub fn exec_with_args( args: &[String], ) -> Result where - C: ProgramCollect, + C: ProgramCollect + Send + Sync, { // Exit code let mut exit_code: i32 = 0; -- cgit