Fix doc(cfg) annotation

This commit is contained in:
Waffle 2021-09-04 14:00:43 +03:00
parent 10d1258683
commit 18cfb675bf

View file

@ -106,7 +106,7 @@ where
///
/// [`shutdown`]: ShutdownToken::shutdown
#[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 {
let state = Arc::clone(&self.state);
tokio::spawn(async move {