From 87e7b158489bdfbacd3d437a044d01f26b4049c6 Mon Sep 17 00:00:00 2001 From: llehtahw Date: Mon, 8 Apr 2024 15:29:38 +0800 Subject: [PATCH] Fix closure (#10) --- src/tuple_proc.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/tuple_proc.rs b/src/tuple_proc.rs index 245d40c..95848ab 100644 --- a/src/tuple_proc.rs +++ b/src/tuple_proc.rs @@ -39,7 +39,7 @@ macro_rules! cascade_option { #[macro_export] macro_rules! cascade_option_fn { ($expr:expr) => { - |x| cascade_option!(x => $expr) + move |x| cascade_option!(x => $expr) }; } @@ -53,7 +53,7 @@ macro_rules! cascade_result { #[macro_export] macro_rules! cascade_result_fn { ($expr:expr) => { - |x| cascade_result!(x => $expr) + move |x| cascade_result!(x => $expr) }; } @@ -67,7 +67,7 @@ macro_rules! cascade_async { #[macro_export] macro_rules! cascade_async_fn { ($expr:expr) => { - |x| cascade_async!(x => $expr) + move |x| cascade_async!(x => $expr) }; } @@ -95,7 +95,7 @@ macro_rules! cascade_option_async { #[macro_export] macro_rules! cascade_option_async_fn { ($expr:expr) => { - |x| cascade_option_async!(x => $expr) + move |x| cascade_option_async!(x => $expr) }; } @@ -109,7 +109,7 @@ macro_rules! cascade_result_async { #[macro_export] macro_rules! cascade_result_async_fn { ($expr:expr) => { - |x| cascade_result_async!(x => $expr) + move |x| cascade_result_async!(x => $expr) }; }