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 {
14311431#[ stable( feature = "rust1" , since = "1.0.0" ) ]
14321432impl From < OsString > for PathBuf {
14331433 /// 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
14361435 fn from ( s : OsString ) -> PathBuf {
14371436 PathBuf { inner : s }
14381437 }
@@ -1441,8 +1440,7 @@ impl From<OsString> for PathBuf {
14411440#[ stable( feature = "from_path_buf_for_os_string" , since = "1.14.0" ) ]
14421441impl From < PathBuf > for OsString {
14431442 /// 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
14461444 fn from ( path_buf : PathBuf ) -> OsString {
14471445 path_buf. inner
14481446 }
You can’t perform that action at this time.
0 commit comments