summaryrefslogtreecommitdiffstats
path: root/tokio-macros
diff options
context:
space:
mode:
authorYin Guanhao <sopium@users.noreply.github.com>2019-06-27 02:41:36 +0800
committerLucio Franco <luciofranco14@gmail.com>2019-06-26 14:41:36 -0400
commit6316aa1d0b0465e8ca72040879365a91c844887f (patch)
tree0e5618e293bc69d0bf53afa1d3da9c94b8612df8 /tokio-macros
parent0784dc27679beecdb06f273ea8c8af0168212c12 (diff)
Update tokio-udp to use std-future (#1199)
Diffstat (limited to 'tokio-macros')
-rw-r--r--tokio-macros/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tokio-macros/src/lib.rs b/tokio-macros/src/lib.rs
index 80c838e6..3cf5d76a 100644
--- a/tokio-macros/src/lib.rs
+++ b/tokio-macros/src/lib.rs
@@ -79,7 +79,7 @@ pub fn test(_attr: TokenStream, item: TokenStream) -> TokenStream {
#(#attrs)*
fn #name() #ret {
let mut rt = tokio::runtime::current_thread::Runtime::new().unwrap();
- rt.block_on_async(async { #body })
+ rt.block_on(async { #body })
}
};