diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-08-03 13:36:13 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-08-03 13:36:13 +0800 |
| commit | 9c8f5c8d60f3066fec8a1573aa3f5673e0b2ecb8 (patch) | |
| tree | 99a5de6f698310215163ffd488de2354c4b7fb3e /examples/example-repl-basic/src/main.rs | |
| parent | 82372181d3b819ce57b04207f42406c188e42ac9 (diff) | |
chore!: rename ErrorDispatcherNotFound to EntryFallback
Rename the internal fallback type and its associated `ProgramCollect`
plumbing from `ErrorDispatcherNotFound`/`build_dispatcher_not_found` to
`EntryFallback`/`build_entry_fallback`, along with the generated enum
variant and pack type. Update all documentation, examples, and tests
accordingly.
Diffstat (limited to 'examples/example-repl-basic/src/main.rs')
| -rw-r--r-- | examples/example-repl-basic/src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/example-repl-basic/src/main.rs b/examples/example-repl-basic/src/main.rs index cfd00d1..361488d 100644 --- a/examples/example-repl-basic/src/main.rs +++ b/examples/example-repl-basic/src/main.rs @@ -178,7 +178,7 @@ fn render_error_directory_not_exist(err: ErrorDirectoryNotExist) -> RenderResult /// Handle dispatcher not found event /// Renders the error when a command is not found. #[renderer] -fn dispatcher_not_found(prev: ErrorDispatcherNotFound) -> RenderResult { +fn dispatcher_not_found(prev: EntryFallback) -> RenderResult { let mut render_result = RenderResult::new(); writeln!(render_result, "Command not found: \"{}\"", prev.join(", ")).ok(); render_result |
