Skip to content

Commit 2517f41

Browse files
committed
Auto merge of #108671 - Coca162:option_reference_flattening, r=dtolnay
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: rust-lang/libs-team#186 Tracking Issue: rust-lang/rust#149221
2 parents d3872f1 + 0448705 commit 2517f41

0 file changed

File tree

    0 commit comments

    Comments
     (0)