From a18ef6fc9431ddcb44de8c8219242fd6cad4cf2b Mon Sep 17 00:00:00 2001 From: Temirkhan Myrzamadi Date: Fri, 24 Jul 2020 00:32:30 +0600 Subject: [PATCH] Describe a full path to TransitionOut --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 19aa1462..a0634fb6 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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 {} {{ pub async fn dispatch(self, cx: teloxide::dispatching::UpdateWithCx) -> TransitionOut {{ match self {{", input.ident).unwrap(); + write!(dispatch_fn, "impl {} {{ pub async fn dispatch(self, cx: teloxide::dispatching::UpdateWithCx) -> teloxide::dispatching::dialogue::TransitionOut {{ match self {{", input.ident).unwrap(); for variant in input.variants.iter() { if let Some(handler) = variant