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 @@ -517,9 +517,9 @@ impl From<Box<CStr>> for CString {
517
517
}
518
518
519
519
#[ stable( feature = "box_from_c_string" , since = "1.18.0" ) ]
520
- impl Into < Box < CStr > > for CString {
521
- fn into ( self ) -> Box < CStr > {
522
- self . into_boxed_c_str ( )
520
+ impl From < CString > for Box < CStr > {
521
+ fn from ( s : CString ) -> Box < CStr > {
522
+ s . into_boxed_c_str ( )
523
523
}
524
524
}
525
525
Original file line number Diff line number Diff line change @@ -543,9 +543,9 @@ impl From<Box<OsStr>> for OsString {
543
543
}
544
544
545
545
#[ stable( feature = "box_from_os_string" , since = "1.18.0" ) ]
546
- impl Into < Box < OsStr > > for OsString {
547
- fn into ( self ) -> Box < OsStr > {
548
- self . into_boxed_os_str ( )
546
+ impl From < OsString > for Box < OsStr > {
547
+ fn from ( s : OsString ) -> Box < OsStr > {
548
+ s . into_boxed_os_str ( )
549
549
}
550
550
}
551
551
Original file line number Diff line number Diff line change @@ -1349,9 +1349,9 @@ impl 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