From c08ea7d8474335cadf13a2a7e45ca497fe375d90 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Fri, 8 May 2026 15:58:39 +0800 Subject: Replace explicit return with trailing expression Suppress clippy::ptr_arg lint in match_user_input --- mingling_core/src/program.rs | 2 +- mingling_core/src/program/exec.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'mingling_core/src') 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>( } } - 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( program: &'static Program, args: &Vec, -- cgit