From 18cfb675bf934ba43c1b556d45491e68536e707c Mon Sep 17 00:00:00 2001 From: Waffle Date: Sat, 4 Sep 2021 14:00:43 +0300 Subject: [PATCH] Fix doc(cfg) annotation --- src/dispatching/dispatcher.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dispatching/dispatcher.rs b/src/dispatching/dispatcher.rs index 77133764..f486c46a 100644 --- a/src/dispatching/dispatcher.rs +++ b/src/dispatching/dispatcher.rs @@ -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 {