Skip to content

Commit

Permalink
fix: suppress some lint (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
andylokandy authored Jun 16, 2024
1 parent 407a7f8 commit 4c578ca
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ fn gen_block(
let log = gen_log(&level, &fn_name, "__input_string", "__ret_value");
let block = quote::quote_spanned!(block.span()=>
async move {
#[allow(unused_braces)]
#[allow(unknown_lints)]
#[allow(clippy::useless_format)]
let __input_string = format!(#input_format);
Expand All @@ -206,6 +207,7 @@ fn gen_block(
let input_format = input_format.unwrap_or_else(|| gen_input_format(sig));
let log = gen_log(&level, &fn_name, "__input_string", "__ret_value");
quote::quote_spanned!(block.span()=>
#[allow(unused_braces)]
#[allow(unknown_lints)]
#[allow(clippy::useless_format)]
let __input_string = format!(#input_format);
Expand Down Expand Up @@ -258,6 +260,7 @@ fn gen_block(
#[allow(unknown_lints)]
#[allow(clippy::useless_format)]
let __input_string = format!(#input_format);
#[allow(unused_braces)]
let __ret_value = async move { #block }.await;
match __ret_value {
#ok_arm
Expand All @@ -279,6 +282,7 @@ fn gen_block(
#[allow(unknown_lints)]
#[allow(clippy::useless_format)]
let __input_string = format!(#input_format);
#[allow(unused_braces)]
#[allow(unknown_lints)]
#[allow(clippy::redundant_closure_call)]
let __ret_value = (move || #block)();
Expand Down

0 comments on commit 4c578ca

Please sign in to comment.