chore: explicitly relaxed clippy lint for runtime entry macro (#4030)

This commit is contained in:
Kateřina Churanová
2021-08-11 18:16:00 +09:00
committed by GitHub
parent 362df5a317
commit 1e95d6994a
+3 -1
View File
@@ -325,11 +325,13 @@ fn parse_knobs(
let brace_token = input.block.brace_token;
input.block = syn::parse2(quote_spanned! {last_stmt_end_span=>
{
let body = async #body;
#[allow(clippy::expect_used)]
#rt
.enable_all()
.build()
.expect("Failed building the Runtime")
.block_on(async #body)
.block_on(body)
}
})
.expect("Parsing failure");