fmt again

This commit is contained in:
jrx 2023-10-27 23:05:01 +02:00
parent 7941dda28d
commit ec7e08bf26

View file

@ -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")] #[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 {
@ -490,7 +491,8 @@ where
self 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 { pub fn shutdown_token(&self) -> ShutdownToken {
self.state.clone() self.state.clone()
} }