aboutsummaryrefslogtreecommitdiff
path: root/mingling_core/src/program
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-08-17 01:35:00 +0800
committer魏曹先生 <1992414357@qq.com>2026-08-17 01:35:00 +0800
commit4c191b2b46a67a0dda6e9a867b40f45156af4f9c (patch)
treef560f65169dc41aad9a0e27c5f7a969ab1f1d8c1 /mingling_core/src/program
parent3ff0404be20633d8546758adc05b5075c3227019 (diff)
refactor!: rename dispatch_args_trie to dispatch_args
Diffstat (limited to 'mingling_core/src/program')
-rw-r--r--mingling_core/src/program/collection.rs4
-rw-r--r--mingling_core/src/program/collection/mock.rs2
-rw-r--r--mingling_core/src/program/exec.rs2
3 files changed, 4 insertions, 4 deletions
diff --git a/mingling_core/src/program/collection.rs b/mingling_core/src/program/collection.rs
index 2b3e9ec..438b800 100644
--- a/mingling_core/src/program/collection.rs
+++ b/mingling_core/src/program/collection.rs
@@ -36,7 +36,7 @@ pub trait ProgramCollect {
/// Use a prefix tree to quickly match arguments and dispatch to an Entry
#[cfg(feature = "dispatch_tree")]
- fn dispatch_args_trie(
+ fn dispatch_args(
raw: &[String],
) -> Result<AnyOutput<Self::Enum>, crate::error::ProgramInternalExecuteError>;
@@ -46,7 +46,7 @@ pub trait ProgramCollect {
/// # Errors
///
/// Returns an error if the program fails to execute the given arguments.
- fn dispatch_args_trie(
+ fn dispatch_args(
_raw: &[String],
) -> Result<AnyOutput<Self::Enum>, crate::error::ProgramInternalExecuteError> {
unreachable!()
diff --git a/mingling_core/src/program/collection/mock.rs b/mingling_core/src/program/collection/mock.rs
index 6b4406e..662d8f2 100644
--- a/mingling_core/src/program/collection/mock.rs
+++ b/mingling_core/src/program/collection/mock.rs
@@ -75,7 +75,7 @@ impl ProgramCollect for MockProgramCollect {
type ResultEmpty = Self;
#[cfg(feature = "dispatch_tree")]
- fn dispatch_args_trie(
+ fn dispatch_args(
_raw: &[String],
) -> Result<AnyOutput<Self::Enum>, crate::error::ProgramInternalExecuteError> {
unreachable!()
diff --git a/mingling_core/src/program/exec.rs b/mingling_core/src/program/exec.rs
index b0a5b16..3ad5ba8 100644
--- a/mingling_core/src/program/exec.rs
+++ b/mingling_core/src/program/exec.rs
@@ -62,7 +62,7 @@ where
let mut current = if cfg!(not(feature = "dispatch_tree")) {
dispatch_args_dynamic(program, args)?
} else {
- C::dispatch_args_trie(args)?
+ C::dispatch_args(args)?
};
// Run hook