diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-05-02 01:38:36 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-05-02 01:40:11 +0800 |
| commit | 81be96847833bd443ddb157cedb7939d8ffcc150 (patch) | |
| tree | b8f476d4430ed435f3ac93a1553219a349c0baca /examples/example-async/src | |
| parent | 1da9fc6103c06015942cf6c06f5fe015479c2706 (diff) | |
Enforce `NextProcess` return type in chain functions and update examples
Diffstat (limited to 'examples/example-async/src')
| -rw-r--r-- | examples/example-async/src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/example-async/src/main.rs b/examples/example-async/src/main.rs index 21e27aa..15aba7d 100644 --- a/examples/example-async/src/main.rs +++ b/examples/example-async/src/main.rs @@ -36,7 +36,7 @@ pack!(Hello = String); #[chain] // fn parse_name(prev: HelloEntry) -> NextProcess { -async fn parse_name(prev: HelloEntry) -> mingling::ChainProcess<ThisProgram> { +async fn parse_name(prev: HelloEntry) -> NextProcess { let name = prev.first().cloned().unwrap_or_else(|| "World".to_string()); Hello::new(name).to_render() } |
