From: bors Date: Mon, 4 Jul 2016 09:18:46 +0000 (-0700) Subject: Auto merge of #34638 - zackmdavis:if_let_over_none_empty_block_arm, r=jseyfried X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=d508de6cf7c7bb9b5057ee63432dbbc899209101;p=rust.git Auto merge of #34638 - zackmdavis:if_let_over_none_empty_block_arm, r=jseyfried prefer `if let` to match with `None => {}` arm in some places This is a spiritual succesor to #34268 / 8531d581, in which we replaced a number of matches of None to the unit value with `if let` conditionals where it was judged that this made for clearer/simpler code (as would be recommended by Manishearth/rust-clippy's `single_match` lint). The same rationale applies to matches of None to the empty block. ---- r? @jseyfried --- d508de6cf7c7bb9b5057ee63432dbbc899209101