diff options
Diffstat (limited to 'examples/example-basic/src/main.rs')
| -rw-r--r-- | examples/example-basic/src/main.rs | 5 |
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(); |
