File tree 2 files changed +11
-11
lines changed
2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -1904,10 +1904,10 @@ impl<'a> FromIterator<String> for Cow<'a, str> {
1904
1904
}
1905
1905
}
1906
1906
1907
- #[ stable( feature = "rust1 " , since = "1.0 .0" ) ]
1908
- impl Into < Vec < u8 > > for String {
1909
- fn into ( self ) -> Vec < u8 > {
1910
- self . into_bytes ( )
1907
+ #[ stable( feature = "from_string_for_vec_u8 " , since = "1.14 .0" ) ]
1908
+ impl From < String > for Vec < u8 > {
1909
+ fn from ( string : String ) -> Vec < u8 > {
1910
+ string . into_bytes ( )
1911
1911
}
1912
1912
}
1913
1913
Original file line number Diff line number Diff line change @@ -1172,6 +1172,13 @@ impl From<OsString> for PathBuf {
1172
1172
}
1173
1173
}
1174
1174
1175
+ #[ stable( feature = "from_path_buf_for_os_string" , since = "1.14.0" ) ]
1176
+ impl From < PathBuf > for OsString {
1177
+ fn from ( path_buf : PathBuf ) -> OsString {
1178
+ path_buf. inner
1179
+ }
1180
+ }
1181
+
1175
1182
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1176
1183
impl From < String > for PathBuf {
1177
1184
fn from ( s : String ) -> PathBuf {
@@ -1282,13 +1289,6 @@ impl AsRef<OsStr> for PathBuf {
1282
1289
}
1283
1290
}
1284
1291
1285
- #[ stable( feature = "rust1" , since = "1.0.0" ) ]
1286
- impl Into < OsString > for PathBuf {
1287
- fn into ( self ) -> OsString {
1288
- self . inner
1289
- }
1290
- }
1291
-
1292
1292
/// A slice of a path (akin to [`str`]).
1293
1293
///
1294
1294
/// This type supports a number of operations for inspecting a path, including
You can’t perform that action at this time.
0 commit comments