mirror of
https://github.com/teloxide/teloxide.git
synced 2025-01-03 17:52:12 +01:00
Mark Polling
and PollingBuilder
as must_use
This commit is contained in:
parent
08da55f54f
commit
430df0cefb
1 changed files with 2 additions and 0 deletions
|
@ -24,6 +24,7 @@ use crate::{
|
||||||
/// Builder for polling update listener.
|
/// Builder for polling update listener.
|
||||||
///
|
///
|
||||||
/// Can be created by [`Polling::builder`].
|
/// Can be created by [`Polling::builder`].
|
||||||
|
#[must_use = "`PollingBuilder` is a builder and does nothing unless used"]
|
||||||
pub struct PollingBuilder<R> {
|
pub struct PollingBuilder<R> {
|
||||||
bot: R,
|
bot: R,
|
||||||
timeout: Option<Duration>,
|
timeout: Option<Duration>,
|
||||||
|
@ -233,6 +234,7 @@ where
|
||||||
///
|
///
|
||||||
/// [get_updates]: crate::requests::Requester::get_updates
|
/// [get_updates]: crate::requests::Requester::get_updates
|
||||||
/// [`Dispatcher`]: crate::dispatching::Dispatcher
|
/// [`Dispatcher`]: crate::dispatching::Dispatcher
|
||||||
|
#[must_use = "`Polling` is an update listener and does nothing unless used"]
|
||||||
pub struct Polling<B: Requester> {
|
pub struct Polling<B: Requester> {
|
||||||
bot: B,
|
bot: B,
|
||||||
timeout: Option<Duration>,
|
timeout: Option<Duration>,
|
||||||
|
|
Loading…
Reference in a new issue