diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2016-10-19 23:15:00 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-10-19 23:15:00 +0200 |
| commit | 123a6ef25cdd5463eef183d0113e3166cdd7b800 (patch) | |
| tree | 62a81a2af818ae4dc089b1bdf5ea3ea37fa0d20e /src/test/run-pass/thinlto | |
| parent | ce369bfa1120b1293933c8e12a1c18e62a2a153e (diff) | |
| parent | 1e7cd5edcca6598720e6a6cb7b7a2c103018028d (diff) | |
| download | rust-123a6ef25cdd5463eef183d0113e3166cdd7b800.tar.gz rust-123a6ef25cdd5463eef183d0113e3166cdd7b800.zip | |
Rollup merge of #37241 - zackmdavis:if_let_over_none_spaced_empty_block_arm, r=nikomatsakis
prefer `if let` to match with `None => { }` arm in some places
In #34268 (8531d581), we replaced matches of None to the unit value `()`
with `if let`s in places where it was deemed that this made the code
unambiguously clearer and more idiomatic. In #34638 (d37edef9), we did
the same for matches of None to the empty block `{}`.
A casual observer, upon seeing these commits fly by, might suppose that
the matter was then settled, that no further pull requests on this
utterly trivial point of style could or would be made. Unless ...
It turns out that sometimes people write the empty block with a space in
between the braces. Who knew?
Diffstat (limited to 'src/test/run-pass/thinlto')
0 files changed, 0 insertions, 0 deletions
