Skip to content

Commit

Permalink
chore: fix output of macro after new rustc release (#4189)
Browse files Browse the repository at this point in the history
  • Loading branch information
Darksonn authored and hawkw committed Nov 16, 2021
1 parent 01a58e0 commit 8303b5a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tokio-macros/src/entry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -356,10 +356,11 @@ fn parse_knobs(mut input: syn::ItemFn, is_test: bool, config: FinalConfig) -> To
{
let body = async #body;
#[allow(clippy::expect_used)]
#tail_return tokio::task::LocalSet::new().block_on(
&#rt.enable_all().build().expect("Failed building the Runtime"),
body,
)#tail_semicolon
#tail_return #rt
.enable_all()
.build()
.expect("Failed building the Runtime")
.block_on(body)#tail_semicolon
}
})
.expect("Parsing failure");
Expand Down

0 comments on commit 8303b5a

Please sign in to comment.