From 2d7e40a4732cdd9c7a6d03fb6920707427556d26 Mon Sep 17 00:00:00 2001 From: Waffle Date: Sat, 3 Oct 2020 03:30:34 +0300 Subject: [PATCH] [throttle] fix doc test --- src/bot/limits.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bot/limits.rs b/src/bot/limits.rs index 71990a53..a5052431 100644 --- a/src/bot/limits.rs +++ b/src/bot/limits.rs @@ -122,9 +122,10 @@ impl Default for Limits { /// /// ## Examples /// -/// ``` +/// ```no_run (throttle fails to spawn task without tokio runtime) /// use teloxide_core::{bot::Limits, requests::RequesterExt, Bot}; /// +/// # #[allow(deprecated)] /// let bot = Bot::new("TOKEN").throttle(Limits::default()); /// /// /* send many requests here */