Fix compilation

This commit is contained in:
Temirkhan Myrzamadi 2020-07-24 16:54:56 +06:00
parent 5db72a26a2
commit e14b2b9fd0

View file

@ -112,7 +112,7 @@ use crate::{
RequestError,
};
use std::{convert::TryInto, sync::Arc, time::Duration};
use std::{convert::TryInto, time::Duration};
/// A generic update listener.
pub trait UpdateListener<E>: Stream<Item = Result<Update, E>> {
@ -123,7 +123,7 @@ impl<S, E> UpdateListener<E> for S where S: Stream<Item = Result<Update, E>> {}
/// Returns a long polling update listener with `timeout` of 10 seconds.
///
/// See also: [`polling`](polling).
pub fn polling_default(bot: Arc<Bot>) -> impl UpdateListener<RequestError> {
pub fn polling_default(bot: Bot) -> impl UpdateListener<RequestError> {
polling(bot, Some(Duration::from_secs(10)), None, None)
}