Skip to content

Commit 0267c0e

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 002cd53 + 4c7c89d commit 0267c0e

0 file changed

File tree

    0 commit comments

    Comments
     (0)