diff --git a/src/dispatching/update_listeners/polling.rs b/src/dispatching/update_listeners/polling.rs index 9a2ee7d6..906ec98c 100644 --- a/src/dispatching/update_listeners/polling.rs +++ b/src/dispatching/update_listeners/polling.rs @@ -24,6 +24,7 @@ use crate::{ /// Builder for polling update listener. /// /// Can be created by [`Polling::builder`]. +#[must_use = "`PollingBuilder` is a builder and does nothing unless used"] pub struct PollingBuilder { bot: R, timeout: Option, @@ -233,6 +234,7 @@ where /// /// [get_updates]: crate::requests::Requester::get_updates /// [`Dispatcher`]: crate::dispatching::Dispatcher +#[must_use = "`Polling` is an update listener and does nothing unless used"] pub struct Polling { bot: B, timeout: Option,