diff options
Diffstat (limited to 'examples/example-async-support/src')
| -rw-r--r-- | examples/example-async-support/src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/example-async-support/src/main.rs b/examples/example-async-support/src/main.rs index 5ded5e5..920b3dd 100644 --- a/examples/example-async-support/src/main.rs +++ b/examples/example-async-support/src/main.rs @@ -33,7 +33,7 @@ async fn main() { program.with_dispatcher(CMDDownload); // Add a hook to display when the download begins - program.with_hook(ProgramHook::empty().on_begin(|| println!("Download begin"))); + program.with_hook(ProgramHook::empty().on_begin::<_, ()>(|_| println!("Download begin"))); // --------- IMPORTANT --------- // The return values of `exec_*()` related functions have been replaced with Futures |
