From 37824854c0216bf751f625b101a038e995fce124 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Wed, 22 Apr 2026 16:59:17 +0800 Subject: Revert ChainProcess changes from commit 3785202 --- mingling_core/src/any.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'mingling_core') diff --git a/mingling_core/src/any.rs b/mingling_core/src/any.rs index b077fba..d1ab3d3 100644 --- a/mingling_core/src/any.rs +++ b/mingling_core/src/any.rs @@ -108,7 +108,10 @@ impl std::ops::DerefMut for AnyOutput { /// - Returns `Ok((`[`AnyOutput`](./struct.AnyOutput.html)`, `[`Next::Chain`](./enum.Next.html)`))` to continue execution with this type next /// - Returns `Ok((`[`AnyOutput`](./struct.AnyOutput.html)`, `[`Next::Renderer`](./enum.Next.html)`))` to render this type next and output to the terminal /// - Returns `Err(`[`ChainProcessError`](./error/enum.ChainProcessError.html)`]` to terminate the program directly -pub type ChainProcess = Result<(AnyOutput, Next), ChainProcessError>; +pub enum ChainProcess { + Ok((AnyOutput, Next)), + Err(ChainProcessError), +} /// Indicates the next step after processing /// -- cgit