mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-25 03:27:17 +00:00
Currently it creates an `Option` and then does `map`/`unwrap_or` and `map_or_else` on it, which is hard to read. This commit simplifies things by moving more code into the two arms of the if/else.