summaryrefslogtreecommitdiffstats
path: root/tokio/src/future/block_on.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tokio/src/future/block_on.rs')
-rw-r--r--tokio/src/future/block_on.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tokio/src/future/block_on.rs b/tokio/src/future/block_on.rs
index 9fc7abc6..91f9cc00 100644
--- a/tokio/src/future/block_on.rs
+++ b/tokio/src/future/block_on.rs
@@ -1,13 +1,13 @@
use std::future::Future;
-cfg_rt_core! {
+cfg_rt! {
pub(crate) fn block_on<F: Future>(f: F) -> F::Output {
let mut e = crate::runtime::enter::enter(false);
e.block_on(f).unwrap()
}
}
-cfg_not_rt_core! {
+cfg_not_rt! {
pub(crate) fn block_on<F: Future>(f: F) -> F::Output {
let mut park = crate::park::thread::CachedParkThread::new();
park.block_on(f).unwrap()