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 @@ -1173,6 +1173,13 @@ impl From<OsString> for PathBuf {
1173
1173
}
1174
1174
}
1175
1175
1176
+ #[ stable( feature = "from_path_buf_for_os_string" , since = "1.14.0" ) ]
1177
+ impl From < PathBuf > for OsString {
1178
+ fn from ( path_buf : PathBuf ) -> OsString {
1179
+ path_buf. inner
1180
+ }
1181
+ }
1182
+
1176
1183
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1177
1184
impl From < String > for PathBuf {
1178
1185
fn from ( s : String ) -> PathBuf {
@@ -1283,13 +1290,6 @@ impl AsRef<OsStr> for PathBuf {
1283
1290
}
1284
1291
}
1285
1292
1286
- #[ stable( feature = "rust1" , since = "1.0.0" ) ]
1287
- impl Into < OsString > for PathBuf {
1288
- fn into ( self ) -> OsString {
1289
- self . inner
1290
- }
1291
- }
1292
-
1293
1293
/// A slice of a path (akin to [`str`]).
1294
1294
///
1295
1295
/// This type supports a number of operations for inspecting a path, including
You can’t perform that action at this time.
0 commit comments