Files
rust/src/libcore
Mark Rousskov c7a178ea5f Rollup merge of #52658 - Wallacoloo:topics/use-option-methods, r=cramertj
Prefer `Option::map`/etc over `match` wherever it improves clarity

This isn't intended to change behavior anywhere. A lot of times statements like `match x { None => None, Some(y) => [...] }` can be rewritten using `Option::map` or `Option::and_then` in a way that preserves or improves clarity, so that's what I've done here.

I think it's particularly valuable to keep things in `libcore` and `libstd` pretty/idiomatic since it's not uncommon to follow the `[src]` links when browsing the rust-lang.org docs for std/core. If there's any concern about pushing style-based changes though, I'll happily back out the non-std/core commits here.
2018-07-24 16:43:49 -06:00
..
2018-05-17 08:47:25 -06:00
2018-07-23 13:45:25 +02:00
2018-07-09 23:13:24 +02:00
2018-07-03 13:13:49 -07:00
2018-03-18 13:05:00 +01:00
2018-05-17 08:47:25 -06:00
2018-07-23 20:58:40 +08:00
2018-05-17 08:47:25 -06:00
2018-07-15 10:16:36 +10:00
2018-07-17 14:10:11 +02:00
2018-06-30 13:17:49 -07:00
2017-08-31 06:58:58 -07:00
2017-10-18 23:12:37 -07:00