]> git.proxmox.com Git - cargo.git/commit
Auto merge of #11081 - WaffleLapkin:no_for_in_option, r=epage
authorbors <bors@rust-lang.org>
Tue, 13 Sep 2022 14:30:07 +0000 (14:30 +0000)
committerbors <bors@rust-lang.org>
Tue, 13 Sep 2022 14:30:07 +0000 (14:30 +0000)
commit0eac8be633e5fdbd93ee31a8ffaada74e637a046
tree177dbbbe729d7b66eebcf8cc72db3b2b590caadf
parentaa700d44c14191d85ad9370ffe89198feb00114d
parentd8f8e8fa58e6a09ee72c8978c89115f178be44e6
Auto merge of #11081 - WaffleLapkin:no_for_in_option, r=epage

Don't use `for` loop on an `Option`

This PR removes a single `for` loop over `Option`, replacing it with an `if let` to improve code clarity. This currently blocks https://github.com/rust-lang/rust/pull/99696 that adds a lint against this pattern.