From cdd988afe9d7339ad5d3eacb0916366ba17447e9 Mon Sep 17 00:00:00 2001 From: Temirkhan Myrzamadi Date: Mon, 27 Jul 2020 00:13:00 +0600 Subject: [PATCH] async { ... } -> async move { ... } --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index c01519c0..c7d516b7 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -124,7 +124,7 @@ pub fn derive_transition(item: TokenStream) -> TokenStream { <{0} as teloxide::dispatching::dialogue::SubTransition>::Aux) -> \ futures::future::BoxFuture<'static, \ teloxide::dispatching::dialogue::TransitionOut> {{ \ - futures::future::FutureExt::boxed(async {{ match self {{", + futures::future::FutureExt::boxed(async move {{ match self {{", field_type_of_first_variant, enum_name ) .unwrap();