mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 14:35:36 +01:00
fmt again
This commit is contained in:
parent
7941dda28d
commit
ec7e08bf26
1 changed files with 4 additions and 2 deletions
|
@ -482,7 +482,8 @@ where
|
|||
}
|
||||
}
|
||||
|
||||
/// Setups the `^C` handler in order to call [`ShutdownToken::shutdown`] when pressed.
|
||||
/// Setups the `^C` handler in order to call [`ShutdownToken::shutdown`]
|
||||
/// when pressed.
|
||||
#[cfg(feature = "ctrlc_handler")]
|
||||
#[deprecated(since = "0.10.0", note = "use `enable_ctrlc_handler` on builder instead")]
|
||||
pub fn setup_ctrlc_handler(&mut self) -> &mut Self {
|
||||
|
@ -490,7 +491,8 @@ where
|
|||
self
|
||||
}
|
||||
|
||||
/// Returns a shutdown token, which can later be used to [`ShutdownToken::shutdown`].
|
||||
/// Returns a shutdown token, which can later be used to
|
||||
/// [`ShutdownToken::shutdown`].
|
||||
pub fn shutdown_token(&self) -> ShutdownToken {
|
||||
self.state.clone()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue