aboutsummaryrefslogtreecommitdiff
path: root/examples/example-basic
diff options
context:
space:
mode:
Diffstat (limited to 'examples/example-basic')
-rw-r--r--examples/example-basic/src/main.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/examples/example-basic/src/main.rs b/examples/example-basic/src/main.rs
index 17077e2..418ed95 100644
--- a/examples/example-basic/src/main.rs
+++ b/examples/example-basic/src/main.rs
@@ -26,10 +26,7 @@ dispatcher!("greet", CMDGreet => EntryGreet);
fn main() {
// Create a new ThisProgram
- let mut program = ThisProgram::new();
-
- // Add the CMDGreet dispatcher
- program.with_dispatcher(CMDGreet);
+ let program = ThisProgram::new();
// Run the program, then exit the process
program.exec_and_exit();