mirror of
https://github.com/teloxide/teloxide.git
synced 2025-03-24 23:57:38 +01:00
Fix doc(cfg) annotation
This commit is contained in:
parent
10d1258683
commit
18cfb675bf
1 changed files with 1 additions and 1 deletions
|
@ -106,7 +106,7 @@ where
|
||||||
///
|
///
|
||||||
/// [`shutdown`]: ShutdownToken::shutdown
|
/// [`shutdown`]: ShutdownToken::shutdown
|
||||||
#[cfg(feature = "ctrlc_handler")]
|
#[cfg(feature = "ctrlc_handler")]
|
||||||
#[cfg_attr(docsrs, doc(cfg(feature = "ctrlc_handler")))]
|
#[cfg_attr(all(docsrs, feature = "nightly"), doc(cfg(feature = "ctrlc_handler")))]
|
||||||
pub fn setup_ctrlc_handler(self) -> Self {
|
pub fn setup_ctrlc_handler(self) -> Self {
|
||||||
let state = Arc::clone(&self.state);
|
let state = Arc::clone(&self.state);
|
||||||
tokio::spawn(async move {
|
tokio::spawn(async move {
|
||||||
|
|
Loading…
Add table
Reference in a new issue