File tree 4 files changed +12
-12
lines changed
4 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -2088,9 +2088,9 @@ impl From<Box<str>> for String {
2088
2088
}
2089
2089
2090
2090
#[ 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 ( )
2094
2094
}
2095
2095
}
2096
2096
Original file line number Diff line number Diff line change @@ -427,9 +427,9 @@ impl From<Box<CStr>> for CString {
427
427
}
428
428
429
429
#[ 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 ( )
433
433
}
434
434
}
435
435
Original file line number Diff line number Diff line change @@ -537,9 +537,9 @@ impl<'a> From<Box<OsStr>> for OsString {
537
537
}
538
538
539
539
#[ 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 ( )
543
543
}
544
544
}
545
545
Original file line number Diff line number Diff line change @@ -1349,9 +1349,9 @@ impl<'a> From<Box<Path>> for PathBuf {
1349
1349
}
1350
1350
1351
1351
#[ 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 ( )
1355
1355
}
1356
1356
}
1357
1357
You can’t perform that action at this time.
0 commit comments