chore: prepare tokio-macros 1.4.1 (#4142)

This reverts commit 33f0a1fd2e.
This commit is contained in:
Alice Ryhl
2021-09-30 10:38:52 +02:00
committed by GitHub
parent 44cfe10ee5
commit d39c9ed9dc
8 changed files with 69 additions and 58 deletions
+5 -4
View File
@@ -339,10 +339,11 @@ fn parse_knobs(
{
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");