diff options
| author | Weicao-CatilGrass <1992414357@qq.com> | 2026-05-13 07:28:02 +0800 |
|---|---|---|
| committer | Weicao-CatilGrass <1992414357@qq.com> | 2026-05-13 07:28:02 +0800 |
| commit | 95c6b979ca399671eed8bf9c72f53cfe5d46f431 (patch) | |
| tree | 8225b39bee4ad3b7ebc8a36ab978d1329f667eb8 /mingling_core/src/program/exec.rs | |
| parent | fef888b75b2544765aa06808c14490a2af827313 (diff) | |
Migrate exit code control to resource-based system
Diffstat (limited to 'mingling_core/src/program/exec.rs')
| -rw-r--r-- | mingling_core/src/program/exec.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mingling_core/src/program/exec.rs b/mingling_core/src/program/exec.rs index acd1bd6..c5ba628 100644 --- a/mingling_core/src/program/exec.rs +++ b/mingling_core/src/program/exec.rs @@ -13,7 +13,7 @@ pub async fn exec<C>( program: &'static Program<C>, ) -> Result<RenderResult, ProgramInternalExecuteError> where - C: ProgramCollect<Enum = C> + std::fmt::Display, + C: ProgramCollect<Enum = C>, { // Run hooks program.run_hook_on_begin(); @@ -105,7 +105,7 @@ where #[cfg(not(feature = "async"))] pub fn exec<C>(program: &'static Program<C>) -> Result<RenderResult, ProgramInternalExecuteError> where - C: ProgramCollect<Enum = C> + std::fmt::Display, + C: ProgramCollect<Enum = C>, { // Run hooks program.run_hook_on_begin(); |
