aboutsummaryrefslogtreecommitdiff
path: root/examples/example-basic/src
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-05-02 01:38:36 +0800
committer魏曹先生 <1992414357@qq.com>2026-05-02 01:40:11 +0800
commit81be96847833bd443ddb157cedb7939d8ffcc150 (patch)
treeb8f476d4430ed435f3ac93a1553219a349c0baca /examples/example-basic/src
parent1da9fc6103c06015942cf6c06f5fe015479c2706 (diff)
Enforce `NextProcess` return type in chain functions and update examples
Diffstat (limited to 'examples/example-basic/src')
-rw-r--r--examples/example-basic/src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/example-basic/src/main.rs b/examples/example-basic/src/main.rs
index 944a914..79853ad 100644
--- a/examples/example-basic/src/main.rs
+++ b/examples/example-basic/src/main.rs
@@ -26,7 +26,7 @@ pack!(Hello = String);
// Register chain to `ThisProgram`, handling logic from `HelloEntry`
#[chain]
-fn parse_name(prev: HelloEntry) -> ChainProcess<ThisProgram> {
+fn parse_name(prev: HelloEntry) -> NextProcess {
// Extract string from `HelloEntry` as argument
let name = prev.first().cloned().unwrap_or_else(|| "World".to_string());