mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-30 06:43:20 +03:00
207cec017f
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.