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 Aug 11, 2021
1 parent 362df5a commit 1e95d69
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tokio-macros/src/entry.rs
Original file line number Diff line number Diff line change
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 1e95d69

Please sign in to comment.