mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-29 00:00:11 +02:00
Update tokio-udp to use std-future (#1199)
This commit is contained in:
committed by
Lucio Franco
parent
0784dc2767
commit
6316aa1d0b
@@ -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 })
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user