Skip to content

Commit

Permalink
chore: explicitly relaxed clippy lint for runtime entry macro (#4030)
Browse files Browse the repository at this point in the history
  • Loading branch information
kate-shine authored and hawkw committed Nov 16, 2021
1 parent f49b7fc commit cc7d9e1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tokio-macros/src/entry.rs
Expand Up @@ -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");
Expand Down

0 comments on commit cc7d9e1

Please sign in to comment.