diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-05-29 17:13:36 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-05-29 17:13:36 +0800 |
| commit | 6edaa76d67ab1ff211c7cc9cd179ffbefe93a04f (patch) | |
| tree | 02d5b5f68b3d443baccbfc0ed3fc7fa16a3dd9a4 /examples | |
| parent | 05826d67f1f9166a6620475ffdeaa488917befd8 (diff) | |
Rename error types with consistent naming convention
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/example-error-handling/src/main.rs | 2 | ||||
| -rw-r--r-- | examples/example-repl-basic/src/main.rs | 2 | ||||
| -rw-r--r-- | examples/example-unit-test/src/main.rs | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/examples/example-error-handling/src/main.rs b/examples/example-error-handling/src/main.rs index d8db852..d4d073e 100644 --- a/examples/example-error-handling/src/main.rs +++ b/examples/example-error-handling/src/main.rs @@ -83,7 +83,7 @@ fn render_error_name_too_long(len: ErrorNameTooLong) { } #[renderer] -fn render_dispatcher_not_found(err: DispatcherNotFound) { +fn render_dispatcher_not_found(err: ErrorDispatcherNotFound) { // Prompt when command is not found, showing the input command r_println!("Command not found: \"{}\"", err.inner.join(" ")); } diff --git a/examples/example-repl-basic/src/main.rs b/examples/example-repl-basic/src/main.rs index f2c871e..630c419 100644 --- a/examples/example-repl-basic/src/main.rs +++ b/examples/example-repl-basic/src/main.rs @@ -166,7 +166,7 @@ fn render_error_directory_not_exist(err: ErrorDirectoryNotExist) { // Handle dispatcher not found event #[renderer] -fn dispatcher_not_found(prev: DispatcherNotFound) { +fn dispatcher_not_found(prev: ErrorDispatcherNotFound) { r_println!("Command not found: \"{}\"", prev.join(", ")) } diff --git a/examples/example-unit-test/src/main.rs b/examples/example-unit-test/src/main.rs index ca7ac25..62c7fbf 100644 --- a/examples/example-unit-test/src/main.rs +++ b/examples/example-unit-test/src/main.rs @@ -110,7 +110,7 @@ fn render_error_name_too_long(len: ErrorNameTooLong) -> String { } #[renderer] -fn render_dispatcher_not_found(err: DispatcherNotFound) { +fn render_dispatcher_not_found(err: ErrorDispatcherNotFound) { r_println!("Command not found: \"{}\"", err.inner.join(" ")); } |
