diff options
Diffstat (limited to 'examples/example-error-handling/src/main.rs')
| -rw-r--r-- | examples/example-error-handling/src/main.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/example-error-handling/src/main.rs b/examples/example-error-handling/src/main.rs index 0cd973a..e9c0f57 100644 --- a/examples/example-error-handling/src/main.rs +++ b/examples/example-error-handling/src/main.rs @@ -108,7 +108,5 @@ fn render_entry_fallback(err: EntryFallback) -> RenderResult { gen_program!(); fn main() { - let mut program = ThisProgram::new(); - program.with_dispatcher(CMDHello); - program.exec_and_exit(); + ThisProgram::new().exec_and_exit(); } |
