Skip to content

Commit

Permalink
Fixing derives
Browse files Browse the repository at this point in the history
  • Loading branch information
svartalf committed Nov 7, 2019
1 parent 300a7ae commit cfac1df
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions heim-derive/src/dev.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,7 @@ pub fn main(_attr: TokenStream, item: TokenStream) -> TokenStream {
#body
}

let mut pool = futures_executor::ThreadPool::new()
.expect("Failed to create futures threadpool");

pool.run(async {
futures_executor::block_on(async {
main().await
})
}
Expand Down Expand Up @@ -179,10 +176,7 @@ pub fn test(_attr: TokenStream, item: TokenStream) -> TokenStream {
#[test]
#(#attrs)*
fn #name() #ret {
let mut pool = futures_executor::ThreadPool::new()
.expect("Failed to create futures threadpool");

pool.run(async {
futures_executor::block_on(async {
#body
})
}
Expand Down

0 comments on commit cfac1df

Please sign in to comment.