Skip to content
Myr

Ignore match_single_binding clippy lint in test

Before adoption: this commit came in with the history the project adopted, so no landing records it.

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); |

authored by David Tolnay · committed by David Tolnay · parent f1cd62c · Browse files · 1 file+1 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−0 removed

  • tests:+1 added−0 removed

1 file+1 added−0 removed

modified:tests/test_macros.rs+1 added
1 unmodified line
2 clippy::assertions_on_result_states,3 clippy::eq_op,4 clippy::incompatible_msrv, // https://github.com/rust-lang/rust-clippy/issues/122575 clippy::items_after_statements,6 clippy::match_single_binding,7 clippy::needless_pass_by_value,8 clippy::shadow_unrelated,9 clippy::wildcard_imports10)]
88 unmodified lines