aboutsummaryrefslogtreecommitdiff
path: root/examples/example-basic/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/example-basic/src/main.rs')
-rw-r--r--examples/example-basic/src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/example-basic/src/main.rs b/examples/example-basic/src/main.rs
index a35cac6..a91154a 100644
--- a/examples/example-basic/src/main.rs
+++ b/examples/example-basic/src/main.rs
@@ -6,8 +6,8 @@
//! ```
use mingling::{
+ ChainProcess,
macros::{chain, dispatcher, gen_program, pack, r_println, renderer},
- marker::NextProcess,
};
// Define dispatcher `HelloCommand`, directing subcommand "hello" to `HelloEntry`
@@ -29,7 +29,7 @@ pack!(Hello = String);
// Register chain to `ThisProgram`, handling logic from `HelloEntry`
#[chain]
-fn parse_name(prev: HelloEntry) -> NextProcess {
+fn parse_name(prev: HelloEntry) -> ChainProcess<ThisProgram> {
// Extract string from `HelloEntry` as argument
let name = prev.first().cloned().unwrap_or_else(|| "World".to_string());