Add stability attribute
This commit is contained in:
parent
ef519c1de5
commit
0cde1cbb10
1 changed files with 1 additions and 0 deletions
|
|
@ -1064,6 +1064,7 @@ impl<T> From<T> for Option<T> {
|
|||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "option_ref_from_ref_option", since = "1.30.0")]
|
||||
impl<'a, T> From<&'a Option<T>> for Option<&'a T> {
|
||||
fn from(o: &'a Option<T>) -> Option<&'a T> {
|
||||
o.as_ref()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue