From cf3cd63c9258c916d49b1c56e84ef3e8fca81ea3 Mon Sep 17 00:00:00 2001 From: Waffle Date: Mon, 28 Dec 2020 21:03:33 +0300 Subject: [PATCH] fix doc tests --- src/requests/request.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/requests/request.rs b/src/requests/request.rs index cdde179b..b719abf5 100644 --- a/src/requests/request.rs +++ b/src/requests/request.rs @@ -42,17 +42,17 @@ pub trait Request: HasPayload { /// ``` /// # async { /// use teloxide_core::{ - /// bot::Bot, - /// methods::GetMe, - /// requests::{Request, RequestJson}, + /// payloads::GetMe, + /// requests::{JsonRequest, Request}, /// types::User, + /// Bot, /// }; /// /// let bot = Bot::new("TOKEN"); /// let method = GetMe::new(); /// let request = JsonRequest::new(bot, method); /// let _: User = request.send().await.unwrap(); - /// # } + /// # }; /// ``` fn send(self) -> Self::Send; @@ -69,17 +69,17 @@ pub trait Request: HasPayload { /// ## Examples /// ``` /// # async { - /// use teloxide_core::prelude::*; + /// use teloxide_core::{prelude::*, requests::Request, Bot}; /// /// let bot = Bot::new("TOKEN"); - /// # let chat_ids = vec![1, 2, 3, 4].into_iter().map(Into::into); + /// # let chat_ids = vec![1i64, 2, 3, 4].into_iter().map(Into::into); /// /// let mut req = bot.send_message(0, "Hi there!"); /// for chat_id in chat_ids { /// req.chat_id = chat_id; /// req.send_ref().await.unwrap(); /// } - /// # } + /// # }; /// ``` fn send_ref(&self) -> Self::SendRef; }