Skip to content

Commit

Permalink
fix None eq warning (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
ihciah authored Aug 22, 2022
1 parent 240dd80 commit a3caebe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion monoio-macros/src/entry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ fn parse_knobs(
_ => (quote! {}, quote! {}),
};

if config.threads == None || config.threads == Some(1) {
if matches!(config.threads, None | Some(1)) {
input.block = syn::parse2(quote_spanned! {last_stmt_end_span=>
{
let body = async #body;
Expand Down

0 comments on commit a3caebe

Please sign in to comment.