diff options
author | Taiki Endo <te316e89@gmail.com> | 2020-10-13 06:13:23 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-12 14:13:23 -0700 |
commit | c90681bd8e629b5fde988b9f5be7b915e5cf8ae5 (patch) | |
tree | e70838b9437123dc986ebcfeb8fc0c44ca3fe667 /tokio/src/time/driver/handle.rs | |
parent | 24d0a0cfa8916eaef17f40f044d978aa3904d654 (diff) |
rt: simplify rt-* features (#2949)
tokio:
merge rt-core and rt-util as rt
rename rt-threaded to rt-multi-thread
tokio-util:
rename rt-core to rt
Closes #2942
Diffstat (limited to 'tokio/src/time/driver/handle.rs')
-rw-r--r-- | tokio/src/time/driver/handle.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tokio/src/time/driver/handle.rs b/tokio/src/time/driver/handle.rs index 93d8cd7b..54b8a8bd 100644 --- a/tokio/src/time/driver/handle.rs +++ b/tokio/src/time/driver/handle.rs @@ -20,7 +20,7 @@ impl Handle { } } -cfg_rt_core! { +cfg_rt! { impl Handle { /// Tries to get a handle to the current timer. /// @@ -45,7 +45,7 @@ cfg_rt_core! { } } -cfg_not_rt_core! { +cfg_not_rt! { impl Handle { /// Tries to get a handle to the current timer. /// @@ -65,7 +65,7 @@ cfg_not_rt_core! { /// panicking. pub(crate) fn current() -> Self { panic!("there is no timer running, must be called from the context of Tokio runtime or \ - `rt-core` is not enabled") + `rt` is not enabled") } } } |