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