From 6edaa76d67ab1ff211c7cc9cd179ffbefe93a04f Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Fri, 29 May 2026 17:13:36 +0800 Subject: Rename error types with consistent naming convention --- mingling_core/src/comp.rs | 3 ++- mingling_core/src/program/collection.rs | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'mingling_core') 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 = >::member_id(); + let dispatcher_not_found = + >::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; - type RendererNotFound: Groupped; - type EmptyResult: Groupped; + type ErrorDispatcherNotFound: Groupped; + type ErrorRendererNotFound: Groupped; + type ResultEmpty: Groupped; /// Use a prefix tree to quickly match arguments and dispatch to an Entry #[cfg(feature = "dispatch_tree")] -- cgit