From cd63dbf1e7d76bd98bfa239e09c357c76d97cb4e Mon Sep 17 00:00:00 2001 From: Maybe Waffle Date: Tue, 5 Jul 2022 00:07:15 +0400 Subject: [PATCH] Make fields of `PollingBuilder` public --- src/dispatching/update_listeners/polling.rs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/dispatching/update_listeners/polling.rs b/src/dispatching/update_listeners/polling.rs index 906ec98c..118fc02e 100644 --- a/src/dispatching/update_listeners/polling.rs +++ b/src/dispatching/update_listeners/polling.rs @@ -24,13 +24,14 @@ use crate::{ /// Builder for polling update listener. /// /// Can be created by [`Polling::builder`]. +#[non_exhaustive] #[must_use = "`PollingBuilder` is a builder and does nothing unless used"] pub struct PollingBuilder { - bot: R, - timeout: Option, - limit: Option, - allowed_updates: Option>, - drop_pending_updates: bool, + pub bot: R, + pub timeout: Option, + pub limit: Option, + pub allowed_updates: Option>, + pub drop_pending_updates: bool, } impl PollingBuilder