Skip to content

Commit bf1d20c

Browse files
committed
Inline impl From<OsString> for PathBuf
1 parent ea6bb7f commit bf1d20c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libstd/path.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1475,6 +1475,7 @@ impl From<OsString> for PathBuf {
14751475
/// Converts a `OsString` into a `PathBuf`
14761476
///
14771477
/// This conversion does not allocate or copy memory.
1478+
#[inline]
14781479
fn from(s: OsString) -> PathBuf {
14791480
PathBuf { inner: s }
14801481
}

0 commit comments

Comments
 (0)