bors 57c67a29d2 Auto merge of #4352 - phansch:fix_redundant_pattern_matching, r=flip1995
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`
2019-08-21 08:15:36 +00:00
..
2019-08-19 09:30:32 -07:00
2019-08-19 09:30:32 -07:00
2019-08-19 09:30:32 -07:00
2019-08-19 09:30:32 -07:00
2019-08-19 09:30:32 -07:00
2019-08-15 10:14:06 +02:00
2019-08-19 09:30:32 -07:00
2019-08-19 09:30:32 -07:00
2019-08-19 09:30:32 -07:00
2019-08-19 09:30:32 -07:00
2019-08-19 09:30:32 -07:00
2019-08-19 09:30:32 -07:00
2019-08-19 09:30:32 -07:00
2019-08-19 09:30:32 -07:00
2019-08-19 09:30:32 -07:00
2019-08-19 09:30:32 -07:00
2019-08-19 09:30:32 -07:00
2019-08-19 09:30:32 -07:00
2019-08-19 14:20:38 +12:00
2019-08-19 12:38:33 -07:00
2019-08-19 09:30:32 -07:00
2019-08-19 09:30:32 -07:00
2019-08-19 09:30:32 -07:00
2019-08-19 09:30:32 -07:00
2019-08-19 09:30:32 -07:00
2019-08-01 07:09:57 +02:00
2019-08-19 09:30:32 -07:00
2019-08-19 09:30:32 -07:00
2019-08-19 09:30:32 -07:00
2019-08-19 09:30:32 -07:00
2019-08-02 18:16:35 +02:00
2019-08-17 11:45:05 +01:00
2019-08-19 09:30:32 -07:00
2019-08-19 09:30:32 -07:00
2019-08-19 09:30:32 -07:00
2019-08-19 09:30:32 -07:00
2019-08-01 07:09:57 +02:00