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 /mingling_core/src | |
| parent | 05826d67f1f9166a6620475ffdeaa488917befd8 (diff) | |
Rename error types with consistent naming convention
Diffstat (limited to 'mingling_core/src')
| -rw-r--r-- | mingling_core/src/comp.rs | 3 | ||||
| -rw-r--r-- | mingling_core/src/program/collection.rs | 6 |
2 files changed, 5 insertions, 4 deletions
diff --git a/mingling_core/src/comp.rs b/mingling_core/src/comp.rs index 4fb17c7..9d84557 100644 --- a/mingling_core/src/comp.rs +++ b/mingling_core/src/comp.rs @@ -82,7 +82,8 @@ impl CompletionHelper { let suggest = if let Ok(any) = P::dispatch_args_trie(&args) { trace!("entry type: {}", any.member_id); - let dispatcher_not_found = <P::DispatcherNotFound as crate::Groupped<P>>::member_id(); + let dispatcher_not_found = + <P::ErrorDispatcherNotFound as crate::Groupped<P>>::member_id(); if dispatcher_not_found == any.member_id { trace!("begin not Ok"); diff --git a/mingling_core/src/program/collection.rs b/mingling_core/src/program/collection.rs index dec2af6..ff26411 100644 --- a/mingling_core/src/program/collection.rs +++ b/mingling_core/src/program/collection.rs @@ -18,9 +18,9 @@ use crate::{ShellContext, Suggest}; pub trait ProgramCollect { /// Enum type representing internal IDs for the program type Enum; - type DispatcherNotFound: Groupped<Self::Enum>; - type RendererNotFound: Groupped<Self::Enum>; - type EmptyResult: Groupped<Self::Enum>; + type ErrorDispatcherNotFound: Groupped<Self::Enum>; + type ErrorRendererNotFound: Groupped<Self::Enum>; + type ResultEmpty: Groupped<Self::Enum>; /// Use a prefix tree to quickly match arguments and dispatch to an Entry #[cfg(feature = "dispatch_tree")] |
