mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-12 06:12:46 +00:00
57c67a29d2
Fix some suggestions for redundant_pattern_matching .. and change the Applicability to `MaybeIncorrect`. Fixes the problem displayed in https://github.com/rust-lang/rust-clippy/issues/4344#issuecomment-519206388. We now append `{}` to the suggestion so that the conditional has the correct syntax again. (If we were to _remove_ the `if` instead, it would trigger the `unused_must_use` warning for `#[must_use]` types.) changelog: Fix some suggestions for `redundant_pattern_matching` |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
README.md |