File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -1431,8 +1431,7 @@ impl<'a, T: ?Sized + AsRef<OsStr>> From<&'a T> for PathBuf {
1431
1431
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1432
1432
impl From < OsString > for PathBuf {
1433
1433
/// Converts a `OsString` into a `PathBuf`.
1434
- /// This conversion copies the data.
1435
- /// This conversion does allocate memory.
1434
+ /// This conversion does not allocate memory
1436
1435
fn from ( s : OsString ) -> PathBuf {
1437
1436
PathBuf { inner : s }
1438
1437
}
@@ -1441,8 +1440,7 @@ impl From<OsString> for PathBuf {
1441
1440
#[ stable( feature = "from_path_buf_for_os_string" , since = "1.14.0" ) ]
1442
1441
impl From < PathBuf > for OsString {
1443
1442
/// Converts a `PathBuf` into a `OsString`.
1444
- /// This conversion copies the data.
1445
- /// This conversion does allocate memory.
1443
+ /// This conversion does not allocate memory
1446
1444
fn from ( path_buf : PathBuf ) -> OsString {
1447
1445
path_buf. inner
1448
1446
}
You can’t perform that action at this time.
0 commit comments