File tree Expand file tree Collapse file tree 4 files changed +12
-12
lines changed
Expand file tree Collapse file tree 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 {
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 @@ -457,9 +457,9 @@ impl From<Box<CStr>> for CString {
457457}
458458
459459#[ stable( feature = "box_from_c_string" , since = "1.18.0" ) ]
460- impl Into < Box < CStr > > for CString {
461- fn into ( self ) -> Box < CStr > {
462- self . into_boxed_c_str ( )
460+ impl From < CString > for Box < CStr > {
461+ fn from ( s : CString ) -> Box < CStr > {
462+ s . into_boxed_c_str ( )
463463 }
464464}
465465
Original file line number Diff line number Diff line change @@ -543,9 +543,9 @@ impl From<Box<OsStr>> for OsString {
543543}
544544
545545#[ 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 ( )
549549 }
550550}
551551
Original file line number Diff line number Diff line change @@ -1349,9 +1349,9 @@ impl 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