about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorLzu Tao <taolzu@gmail.com>2020-01-10 19:02:14 +0000
committerLzu Tao <taolzu@gmail.com>2020-01-10 19:02:14 +0000
commitbf1d20c4b60c20a780e8d98882e24b0e48b1a33d (patch)
tree1aa7af56c56ae49a2d12f508adc36c902cc4b6d2 /src/libstd
parentea6bb7fe17395545a8f22563ed831ac5d2b4389f (diff)
downloadrust-bf1d20c4b60c20a780e8d98882e24b0e48b1a33d.tar.gz
rust-bf1d20c4b60c20a780e8d98882e24b0e48b1a33d.zip
Inline `impl From<OsString> for PathBuf`
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/path.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstd/path.rs b/src/libstd/path.rs
index 7ea642942dd..a09300ffe95 100644
--- a/src/libstd/path.rs
+++ b/src/libstd/path.rs
@@ -1475,6 +1475,7 @@ impl From<OsString> for PathBuf {
     /// Converts a `OsString` into a `PathBuf`
     ///
     /// This conversion does not allocate or copy memory.
+    #[inline]
     fn from(s: OsString) -> PathBuf {
         PathBuf { inner: s }
     }