File tree Expand file tree Collapse file tree 5 files changed +15
-15
lines changed Expand file tree Collapse file tree 5 files changed +15
-15
lines changed Original file line number Diff line number Diff line change @@ -2088,9 +2088,9 @@ impl From<Box<str>> for String {
20882088}
20892089
20902090#[ stable( feature = "box_from_str" , since = "1.18.0" ) ]
2091- impl Into < Box < str > > for String {
2092- fn into ( self ) -> Box < str > {
2093- self . into_boxed_str ( )
2091+ impl From < String > for Box < str > {
2092+ fn from ( s : String ) -> Box < str > {
2093+ s . into_boxed_str ( )
20942094 }
20952095}
20962096
Original file line number Diff line number Diff line change @@ -2125,9 +2125,9 @@ impl<T> From<Box<[T]>> for Vec<T> {
21252125}
21262126
21272127#[ stable( feature = "box_from_vec" , since = "1.18.0" ) ]
2128- impl < T > Into < Box < [ T ] > > for Vec < T > {
2129- fn into ( self ) -> Box < [ T ] > {
2130- self . into_boxed_slice ( )
2128+ impl < T > From < Vec < T > > for Box < [ T ] > {
2129+ fn from ( v : Vec < T > ) -> Box < [ T ] > {
2130+ v . into_boxed_slice ( )
21312131 }
21322132}
21332133
Original file line number Diff line number Diff line change @@ -427,9 +427,9 @@ impl From<Box<CStr>> for CString {
427427}
428428
429429#[ stable( feature = "box_from_c_string" , since = "1.18.0" ) ]
430- impl Into < Box < CStr > > for CString {
431- fn into ( self ) -> Box < CStr > {
432- self . into_boxed_c_str ( )
430+ impl From < CString > for Box < CStr > {
431+ fn from ( s : CString ) -> Box < CStr > {
432+ s . into_boxed_c_str ( )
433433 }
434434}
435435
Original file line number Diff line number Diff line change @@ -537,9 +537,9 @@ impl<'a> From<Box<OsStr>> for OsString {
537537}
538538
539539#[ stable( feature = "box_from_os_string" , since = "1.18.0" ) ]
540- impl Into < Box < OsStr > > for OsString {
541- fn into ( self ) -> Box < OsStr > {
542- self . into_boxed_os_str ( )
540+ impl From < OsString > for Box < OsStr > {
541+ fn from ( s : OsString ) -> Box < OsStr > {
542+ s . into_boxed_os_str ( )
543543 }
544544}
545545
Original file line number Diff line number Diff line change @@ -1349,9 +1349,9 @@ impl<'a> From<Box<Path>> for PathBuf {
13491349}
13501350
13511351#[ stable( feature = "box_from_path_buf" , since = "1.18.0" ) ]
1352- impl Into < Box < Path > > for PathBuf {
1353- fn into ( self ) -> Box < Path > {
1354- self . into_boxed_path ( )
1352+ impl From < PathBuf > for Box < Path > {
1353+ fn from ( p : PathBuf ) -> Box < Path > {
1354+ p . into_boxed_path ( )
13551355 }
13561356}
13571357
You can’t perform that action at this time.
0 commit comments