File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -1498,7 +1498,10 @@ impl<T: Clone> Option<&T> {
14981498 #[ must_use = "`self` will be dropped if the result is not used" ]
14991499 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
15001500 #[ rustc_const_unstable( feature = "const_option_cloned" , issue = "none" ) ]
1501- pub const fn cloned ( self ) -> Option < T > where T : ~const Clone {
1501+ pub const fn cloned ( self ) -> Option < T >
1502+ where
1503+ T : ~const Clone ,
1504+ {
15021505 match self {
15031506 Some ( t) => Some ( t. clone ( ) ) ,
15041507 None => None ,
@@ -1522,7 +1525,10 @@ impl<T: Clone> Option<&mut T> {
15221525 #[ must_use = "`self` will be dropped if the result is not used" ]
15231526 #[ stable( since = "1.26.0" , feature = "option_ref_mut_cloned" ) ]
15241527 #[ rustc_const_unstable( feature = "const_option_cloned" , issue = "none" ) ]
1525- pub const fn cloned ( self ) -> Option < T > where T : ~const Clone {
1528+ pub const fn cloned ( self ) -> Option < T >
1529+ where
1530+ T : ~const Clone ,
1531+ {
15261532 match self {
15271533 Some ( t) => Some ( t. clone ( ) ) ,
15281534 None => None ,
You can’t perform that action at this time.
0 commit comments