From 1dc36c7aff6708395dc9e45bbbb7cb1a69d81741 Mon Sep 17 00:00:00 2001 From: vic1707 <28602203+vic1707@users.noreply.github.com> Date: Tue, 14 Nov 2023 22:39:33 +0100 Subject: [PATCH] rm useless `move` --- src/token/function.rs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/token/function.rs b/src/token/function.rs index 16a2a9b..88d1868 100644 --- a/src/token/function.rs +++ b/src/token/function.rs @@ -47,42 +47,42 @@ macro_rules! xprs_fn { //// closure wraping //// (wrap $function:expr, 0) => { - move |_| $function() + |_| $function() }; (wrap $function:expr, 1) => { #[allow(clippy::indexing_slicing)] - move |args| $function(args[0]) + |args| $function(args[0]) }; (wrap $function:expr, 2) => { #[allow(clippy::indexing_slicing)] - move |args| $function(args[0], args[1]) + |args| $function(args[0], args[1]) }; (wrap $function:expr, 3) => { #[allow(clippy::indexing_slicing)] - move |args| $function(args[0], args[1], args[2]) + |args| $function(args[0], args[1], args[2]) }; (wrap $function:expr, 4) => { #[allow(clippy::indexing_slicing)] - move |args| $function(args[0], args[1], args[2], args[3]) + |args| $function(args[0], args[1], args[2], args[3]) }; (wrap $function:expr, 5) => { #[allow(clippy::indexing_slicing)] - move |args| $function(args[0], args[1], args[2], args[3], args[4]) + |args| $function(args[0], args[1], args[2], args[3], args[4]) }; (wrap $function:expr, 6) => { #[allow(clippy::indexing_slicing)] - move |args| $function(args[0], args[1], args[2], args[3], args[4], args[5]) + |args| $function(args[0], args[1], args[2], args[3], args[4], args[5]) }; (wrap $function:expr, 7) => { #[allow(clippy::indexing_slicing)] - move |args| $function(args[0], args[1], args[2], args[3], args[4], args[5], args[6]) + |args| $function(args[0], args[1], args[2], args[3], args[4], args[5], args[6]) }; (wrap $function:expr, 8) => { #[allow(clippy::indexing_slicing)] - move |args| $function(args[0], args[1], args[2], args[3], args[4], args[5], args[6], args[7]) + |args| $function(args[0], args[1], args[2], args[3], args[4], args[5], args[6], args[7]) }; (wrap $function:expr, 9) => { #[allow(clippy::indexing_slicing)] - move |args| $function(args[0], args[1], args[2], args[3], args[4], args[5], args[6], args[7], args[8]) + |args| $function(args[0], args[1], args[2], args[3], args[4], args[5], args[6], args[7], args[8]) }; }