aboutsummaryrefslogtreecommitdiff
path: root/mingling_core/src/program
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-05-08 15:58:39 +0800
committer魏曹先生 <1992414357@qq.com>2026-05-08 15:58:39 +0800
commitc08ea7d8474335cadf13a2a7e45ca497fe375d90 (patch)
tree6bb1d8285e342cd8c0ba6530287358087e0f7d39 /mingling_core/src/program
parent8ead3c106b932fad81cc6e9993774a226f739179 (diff)
Replace explicit return with trailing expression
Suppress clippy::ptr_arg lint in match_user_input
Diffstat (limited to 'mingling_core/src/program')
-rw-r--r--mingling_core/src/program/exec.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/mingling_core/src/program/exec.rs b/mingling_core/src/program/exec.rs
index 9cb2892..001b250 100644
--- a/mingling_core/src/program/exec.rs
+++ b/mingling_core/src/program/exec.rs
@@ -137,6 +137,7 @@ where
/// Match user input against registered dispatchers and return the matched dispatcher and remaining arguments.
#[allow(clippy::type_complexity)]
+#[allow(clippy::ptr_arg)]
pub(crate) fn match_user_input<C>(
program: &'static Program<C>,
args: &Vec<String>,