mirror of
https://github.com/teloxide/teloxide.git
synced 2025-01-10 20:12:25 +01:00
Fix errors
This commit is contained in:
parent
ec9c540839
commit
17a9b4d3df
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ pub fn bot_dialogue(_attr: TokenStream, item: TokenStream) -> TokenStream {
|
|||
let input = parse_macro_input!(item as ItemEnum);
|
||||
let mut dispatch_fn = "".to_owned();
|
||||
|
||||
write!(dispatch_fn, "impl {0} {{ pub fn dispatch(self, cx: teloxide::dispatching::UpdateWithCx<teloxide::types::Message>) -> TransitionOut<{0}> {{ match self {{", input.ident).unwrap();
|
||||
write!(dispatch_fn, "impl {} {{ pub async fn dispatch(self, cx: teloxide::dispatching::UpdateWithCx<teloxide::types::Message>) -> TransitionOut<Self> {{ match self {{", input.ident).unwrap();
|
||||
|
||||
for variant in input.variants.iter() {
|
||||
if let Some(handler) = variant
|
||||
|
|
Loading…
Reference in a new issue