Skip to content

Commit 327d8ed

Browse files
authored
chore: suppress clippy::ignored_unit_patterns (#21)
1 parent cb8f984 commit 327d8ed

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

src/lib.rs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,6 @@ fn gen_plain_label_block(
332332
#[allow(unknown_lints)]
333333
#[allow(clippy::useless_format)]
334334
let __input_string = format!(#input_format);
335-
#[allow(unknown_lints)]
336335
let __ret_value = async { #block }.await;
337336
#log;
338337
__ret_value
@@ -408,8 +407,9 @@ fn gen_result_label_block(
408407
#[allow(unknown_lints)]
409408
#[allow(clippy::useless_format)]
410409
let __input_string = format!(#input_format);
411-
#[allow(unknown_lints)]
412410
let __ret_value = async { #block }.await;
411+
#[allow(unknown_lints)]
412+
#[allow(clippy::ignored_unit_patterns)]
413413
match __ret_value {
414414
#ok_arm
415415
#err_arm
@@ -435,6 +435,8 @@ fn gen_result_label_block(
435435
#[allow(clippy::redundant_closure_call)]
436436
#[allow(clippy::let_unit_value)]
437437
let __ret_value = (move || #block)();
438+
#[allow(unknown_lints)]
439+
#[allow(clippy::ignored_unit_patterns)]
438440
match __ret_value {
439441
#ok_arm
440442
#err_arm
@@ -487,8 +489,9 @@ fn gen_option_label_block(
487489
#[allow(unknown_lints)]
488490
#[allow(clippy::useless_format)]
489491
let __input_string = format!(#input_format);
490-
#[allow(unknown_lints)]
491492
let __ret_value = async { #block }.await;
493+
#[allow(unknown_lints)]
494+
#[allow(clippy::ignored_unit_patterns)]
492495
match __ret_value {
493496
#some_arm
494497
#none_arm
@@ -514,6 +517,8 @@ fn gen_option_label_block(
514517
#[allow(clippy::redundant_closure_call)]
515518
#[allow(clippy::let_unit_value)]
516519
let __ret_value = (move || #block)();
520+
#[allow(unknown_lints)]
521+
#[allow(clippy::ignored_unit_patterns)]
517522
match __ret_value {
518523
#some_arm
519524
#none_arm

0 commit comments

Comments
 (0)