diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-05-08 15:58:39 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-05-08 15:58:39 +0800 |
| commit | c08ea7d8474335cadf13a2a7e45ca497fe375d90 (patch) | |
| tree | 6bb1d8285e342cd8c0ba6530287358087e0f7d39 | |
| parent | 8ead3c106b932fad81cc6e9993774a226f739179 (diff) | |
Replace explicit return with trailing expression
Suppress clippy::ptr_arg lint in match_user_input
| -rw-r--r-- | mingling_core/src/program.rs | 2 | ||||
| -rw-r--r-- | mingling_core/src/program/exec.rs | 1 |
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>, |
