Skip to content

Commit

Permalink
Ignore match_single_binding clippy lint in test
Browse files Browse the repository at this point in the history
    warning: this match could be written as a `let` statement
      --> tests/test_macros.rs:63:9
       |
    63 | /         match s {
    64 | |             Struct { condition } => ensure!(condition), // &bool
    65 | |         }
       | |_________^
       |
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_single_binding
       = note: `#[warn(clippy::match_single_binding)]` on by default
    help: consider using a `let` statement
       |
    63 ~         let Struct { condition } = s;
    64 +         ensure!(condition);
       |
  • Loading branch information
dtolnay committed May 17, 2024
1 parent f1cd62c commit eb8becf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
clippy::eq_op,
clippy::incompatible_msrv, // https://github.com/rust-lang/rust-clippy/issues/12257
clippy::items_after_statements,
clippy::match_single_binding,
clippy::needless_pass_by_value,
clippy::shadow_unrelated,
clippy::wildcard_imports
Expand Down

0 comments on commit eb8becf

Please sign in to comment.