diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-04-22 16:59:17 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-04-22 16:59:17 +0800 |
| commit | 37824854c0216bf751f625b101a038e995fce124 (patch) | |
| tree | 9346ef69f31cd8eaae05e76f8967030152a36f6a /mingling_core/src/any.rs | |
| parent | 67e949309771019e86ab5c83691edc7afff7e6be (diff) | |
Revert ChainProcess changes from commit 3785202
Diffstat (limited to 'mingling_core/src/any.rs')
| -rw-r--r-- | mingling_core/src/any.rs | 5 |
1 files changed, 4 insertions, 1 deletions
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<G> std::ops::DerefMut for AnyOutput<G> { /// - 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<G> = Result<(AnyOutput<G>, Next), ChainProcessError>; +pub enum ChainProcess<G> { + Ok((AnyOutput<G>, Next)), + Err(ChainProcessError), +} /// Indicates the next step after processing /// |
