mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-30 00:00:16 +02:00
chore: explicitly relaxed clippy lint for runtime entry macro (#4030)
This commit is contained in:
@@ -325,11 +325,13 @@ fn parse_knobs(
|
|||||||
let brace_token = input.block.brace_token;
|
let brace_token = input.block.brace_token;
|
||||||
input.block = syn::parse2(quote_spanned! {last_stmt_end_span=>
|
input.block = syn::parse2(quote_spanned! {last_stmt_end_span=>
|
||||||
{
|
{
|
||||||
|
let body = async #body;
|
||||||
|
#[allow(clippy::expect_used)]
|
||||||
#rt
|
#rt
|
||||||
.enable_all()
|
.enable_all()
|
||||||
.build()
|
.build()
|
||||||
.expect("Failed building the Runtime")
|
.expect("Failed building the Runtime")
|
||||||
.block_on(async #body)
|
.block_on(body)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.expect("Parsing failure");
|
.expect("Parsing failure");
|
||||||
|
|||||||
Reference in New Issue
Block a user