From c793ead0c31b9c1a3ffd5858ca37e0e5a9d40d56 Mon Sep 17 00:00:00 2001 From: Alice Ryhl Date: Tue, 20 Oct 2020 06:35:33 +0200 Subject: runtime: remove unneeded #[cfg(feature = "rt")] (#2996) --- tokio/src/runtime/mod.rs | 4 ---- 1 file changed, 4 deletions(-) (limited to 'tokio/src/runtime') diff --git a/tokio/src/runtime/mod.rs b/tokio/src/runtime/mod.rs index 7f4952d7..4eba7923 100644 --- a/tokio/src/runtime/mod.rs +++ b/tokio/src/runtime/mod.rs @@ -287,7 +287,6 @@ cfg_rt! { #[derive(Debug)] enum Kind { /// Execute all tasks on the current-thread. - #[cfg(feature = "rt")] CurrentThread(BasicScheduler), /// Execute tasks across multiple threads. @@ -359,7 +358,6 @@ cfg_rt! { /// }); /// # } /// ``` - #[cfg(feature = "rt")] pub fn spawn(&self, future: F) -> JoinHandle where F: Future + Send + 'static, @@ -388,7 +386,6 @@ cfg_rt! { /// println!("now running on a worker thread"); /// }); /// # } - #[cfg(feature = "rt")] pub fn spawn_blocking(&self, func: F) -> JoinHandle where F: FnOnce() -> R + Send + 'static, @@ -443,7 +440,6 @@ cfg_rt! { let _enter = self.enter(); match &self.kind { - #[cfg(feature = "rt")] Kind::CurrentThread(exec) => exec.block_on(future), #[cfg(feature = "rt-multi-thread")] Kind::ThreadPool(exec) => exec.block_on(future), -- cgit v1.2.3