diff options
| author | Lzu Tao <taolzu@gmail.com> | 2020-01-10 19:02:14 +0000 |
|---|---|---|
| committer | Lzu Tao <taolzu@gmail.com> | 2020-01-10 19:02:14 +0000 |
| commit | bf1d20c4b60c20a780e8d98882e24b0e48b1a33d (patch) | |
| tree | 1aa7af56c56ae49a2d12f508adc36c902cc4b6d2 /src/libstd | |
| parent | ea6bb7fe17395545a8f22563ed831ac5d2b4389f (diff) | |
| download | rust-bf1d20c4b60c20a780e8d98882e24b0e48b1a33d.tar.gz rust-bf1d20c4b60c20a780e8d98882e24b0e48b1a33d.zip | |
Inline `impl From<OsString> for PathBuf`
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/path.rs | 1 |
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 } } |
