diff options
Diffstat (limited to 'examples/example-async/src/main.rs')
| -rw-r--r-- | examples/example-async/src/main.rs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/examples/example-async/src/main.rs b/examples/example-async/src/main.rs index 29aee7e..21e27aa 100644 --- a/examples/example-async/src/main.rs +++ b/examples/example-async/src/main.rs @@ -16,10 +16,7 @@ //! cargo run --manifest-path ./examples/example-async/Cargo.toml -- hello World //! ``` -use mingling::{ - macros::{chain, dispatcher, gen_program, pack, r_println, renderer}, - marker::NextProcess, -}; +use mingling::macros::{chain, dispatcher, gen_program, pack, r_println, renderer}; dispatcher!("hello", HelloCommand => HelloEntry); @@ -39,7 +36,7 @@ pack!(Hello = String); #[chain] // fn parse_name(prev: HelloEntry) -> NextProcess { -async fn parse_name(prev: HelloEntry) -> NextProcess { +async fn parse_name(prev: HelloEntry) -> mingling::ChainProcess<ThisProgram> { let name = prev.first().cloned().unwrap_or_else(|| "World".to_string()); Hello::new(name).to_render() } |
