diff options
| author | Philipp Hansch <dev@phansch.net> | 2019-08-07 20:34:23 +0200 |
|---|---|---|
| committer | Philipp Hansch <dev@phansch.net> | 2019-08-21 07:29:44 +0200 |
| commit | 0d85d7e60f393563d717d86fbef05f7309923a08 (patch) | |
| tree | 5d6a39f7e7552821cb1d5cb79111c83f545afadc /src/test/incremental/thinlto | |
| parent | 460e2659f1365fd987c2aad3433855ef24f1b700 (diff) | |
| download | rust-0d85d7e60f393563d717d86fbef05f7309923a08.tar.gz rust-0d85d7e60f393563d717d86fbef05f7309923a08.zip | |
Fix suggestions for redundant_pattern_matching
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.
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions
