From 637c5507a18390fbe6087805f5204328cdc94bcf Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Sun, 29 Mar 2026 17:10:48 +0800 Subject: Remove ProgramEnd and NoChainFound hint markers --- mingling/src/program/exec.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'mingling/src/program/exec.rs') diff --git a/mingling/src/program/exec.rs b/mingling/src/program/exec.rs index ccdb17b..8277f69 100644 --- a/mingling/src/program/exec.rs +++ b/mingling/src/program/exec.rs @@ -3,7 +3,7 @@ use crate::{ AnyOutput, ChainProcess, Dispatcher, Program, ProgramCollect, RenderResult, error::{ChainProcessError, ProgramInternalExecuteError}, - hint::{DispatcherNotFound, NoChainFound, ProgramEnd, RendererNotFound}, + hint::{DispatcherNotFound, RendererNotFound}, }; pub mod error; @@ -59,7 +59,9 @@ pub async fn exec( } } }; - if current.is::() || current.is::() { + + // If the dispatcher cannot find the next chain, end execution + if C::has_chain(¤t) { break; } } -- cgit