aboutsummaryrefslogtreecommitdiff
path: root/mingling_core
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
parent8ead3c106b932fad81cc6e9993774a226f739179 (diff)
Replace explicit return with trailing expression
Suppress clippy::ptr_arg lint in match_user_input
Diffstat (limited to 'mingling_core')
-rw-r--r--mingling_core/src/program.rs2
-rw-r--r--mingling_core/src/program/exec.rs1
2 files changed, 2 insertions, 1 deletions
diff --git a/mingling_core/src/program.rs b/mingling_core/src/program.rs
index f305e88..4d943cf 100644
--- a/mingling_core/src/program.rs
+++ b/mingling_core/src/program.rs
@@ -474,5 +474,5 @@ pub fn get_nodes<C: ProgramCollect<Enum = C>>(
}
}
- return r;
+ r
}
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>,