Inline impl From<OsString> for PathBuf
This commit is contained in:
parent
ea6bb7fe17
commit
bf1d20c4b6
1 changed files with 1 additions and 0 deletions
|
@ -1475,6 +1475,7 @@ impl From<OsString> for PathBuf {
|
||||||
/// Converts a `OsString` into a `PathBuf`
|
/// Converts a `OsString` into a `PathBuf`
|
||||||
///
|
///
|
||||||
/// This conversion does not allocate or copy memory.
|
/// This conversion does not allocate or copy memory.
|
||||||
|
#[inline]
|
||||||
fn from(s: OsString) -> PathBuf {
|
fn from(s: OsString) -> PathBuf {
|
||||||
PathBuf { inner: s }
|
PathBuf { inner: s }
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue