mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
123588a5bf
Implement flatten for `Option<&Option<T>>` and `Option<&mut Option<T>>` Adds `.flatten_ref()` to get a immutable reference of a nested option and `.flatten_mut()` for mutable references. ACP: https://github.com/rust-lang/libs-team/issues/186 Tracking Issue: rust-lang/rust#149221