diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-08-14 00:35:46 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-08-14 00:35:46 +0800 |
| commit | 1771304c59f6bdf162ed655c8fbc69d478600bf5 (patch) | |
| tree | 7cad91be8e99beee9150c911efe570edf8ff1746 /examples/example-lazy-resources | |
| parent | 299b96c8917a7b2c70c9e8040c064d3186ecd760 (diff) | |
refactor: replace with_dispatchers with chained with_dispatcher calls
Diffstat (limited to 'examples/example-lazy-resources')
| -rw-r--r-- | examples/example-lazy-resources/src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/example-lazy-resources/src/main.rs b/examples/example-lazy-resources/src/main.rs index aaafb98..7dda658 100644 --- a/examples/example-lazy-resources/src/main.rs +++ b/examples/example-lazy-resources/src/main.rs @@ -64,7 +64,7 @@ fn main() { program.with_resource(ResLargeData::lazy_init(init_res_large_data)); // --------- IMPORTANT --------- - program.with_dispatchers((CMDShow, CMDNone)); + program.with_dispatcher(CMDShow).with_dispatcher(CMDNone); program.exec_and_exit(); } |
