diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-06-24 12:01:38 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-06-24 12:01:38 +0800 |
| commit | 1d1baf75a3acb5eb32913a8bdad42bae42844aa2 (patch) | |
| tree | 5dafbcbce48a5de3c61bba0c7d309e97dd80b1ce /examples/example-async-support | |
| parent | addfbbf0b33a6251605990da73c2de5131766827 (diff) | |
Redesign hook system with structured info types and ProgramControls
Diffstat (limited to 'examples/example-async-support')
| -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 |
