mirror of
https://github.com/teloxide/teloxide.git
synced 2025-03-14 11:44:04 +01:00
Remove useless async move { ... }
This commit is contained in:
parent
59750612a2
commit
57d3e266fa
1 changed files with 4 additions and 4 deletions
|
@ -122,7 +122,7 @@ fn create_branch_no_fields(
|
|||
) -> TokenStream {
|
||||
quote! {
|
||||
.branch(
|
||||
dptree::filter(|state: #state #state_generics| async move {
|
||||
dptree::filter(|state: #state #state_generics| {
|
||||
match state { #state::#kind => true, _ => false }
|
||||
}).endpoint(#handler)
|
||||
)
|
||||
|
@ -137,7 +137,7 @@ fn create_branch_one_field(
|
|||
) -> TokenStream {
|
||||
quote! {
|
||||
.branch(
|
||||
dptree::filter_map(|state: #state #state_generics| async move {
|
||||
dptree::filter_map(|state: #state #state_generics| {
|
||||
match state { #state::#kind(arg) => Some(arg), _ => None }
|
||||
}).endpoint(#handler)
|
||||
)
|
||||
|
@ -155,7 +155,7 @@ fn create_branch_multiple_fields(
|
|||
|
||||
quote! {
|
||||
.branch(
|
||||
dptree::filter_map(|state: #state #state_generics| async move {
|
||||
dptree::filter_map(|state: #state #state_generics| {
|
||||
match state { #state::#kind(#fields) => Some((#fields)), _ => None }
|
||||
}).endpoint(#handler)
|
||||
)
|
||||
|
@ -190,7 +190,7 @@ fn create_branch_multiple_fields_named(
|
|||
|
||||
quote! {
|
||||
.branch(
|
||||
dptree::filter_map(|state: #state #state_generics| async move {
|
||||
dptree::filter_map(|state: #state #state_generics| {
|
||||
match state { #state::#kind { #fields } => Some((#fields)), _ => None }
|
||||
}).endpoint(#handler)
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue