aboutsummaryrefslogtreecommitdiff
path: root/mingling_core/src/program/exec.rs
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-08-12 02:34:39 +0800
committer魏曹先生 <1992414357@qq.com>2026-08-12 02:34:39 +0800
commit4e163438f9d9af83c1492826acf742337ec147c9 (patch)
tree94055401a7c958e0fe5e6f8e4143cccdf86e7e06 /mingling_core/src/program/exec.rs
parentd5a039e9d882f8f50b3cc9cdc10bc7bd84a5fa4d (diff)
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.
Diffstat (limited to 'mingling_core/src/program/exec.rs')
-rw-r--r--mingling_core/src/program/exec.rs4
1 files changed, 2 insertions, 2 deletions
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<C>(program: &'static Program<C>) -> Result<RenderResult, ProgramInternalExecuteError>
where
- C: ProgramCollect<Enum = C>,
+ C: ProgramCollect<Enum = C> + Send + Sync,
{
might_be_async::invoke!(exec_with_args(program, &program.args))
}
@@ -23,7 +23,7 @@ pub fn exec_with_args<C>(
args: &[String],
) -> Result<RenderResult, ProgramInternalExecuteError>
where
- C: ProgramCollect<Enum = C>,
+ C: ProgramCollect<Enum = C> + Send + Sync,
{
// Exit code
let mut exit_code: i32 = 0;