]> git.lizzy.rs Git - rust.git/commit
Auto merge of #84164 - LingMan:option_option, r=estebank
authorbors <bors@rust-lang.org>
Tue, 13 Apr 2021 18:04:20 +0000 (18:04 +0000)
committerbors <bors@rust-lang.org>
Tue, 13 Apr 2021 18:04:20 +0000 (18:04 +0000)
commit132b4e5d167b7e622fcc11fa2b67b931105b4de1
tree2582b4a7be38c6cb43f13507fecfdd47877f5c02
parent5c1304205b7bc53a1e9f48cf286a60438351c1ab
parent28aed81f7d3c03aebfe23832593be9a1cb610257
Auto merge of #84164 - LingMan:option_option, r=estebank

Avoid an `Option<Option<_>>`

By simply swapping the calls to `map` and `and_then` around the complexity of
handling an `Option<Option<_>>` disappears.

`@rustbot` modify labels +C-cleanup +T-compiler