summary refs log tree commit diff
path: root/library/std/src
diff options
context:
space:
mode:
authorKonrad Borowski <konrad.borowski@kontomatik.com>2022-01-11 19:31:36 +0100
committerKonrad Borowski <konrad.borowski@kontomatik.com>2022-01-11 19:33:46 +0100
commit7e6d97bc39b1a4169db9f139c24abaac8f94048e (patch)
tree76b32eb3578889116f65bde04f90256738a7fd65 /library/std/src
parent4a7fb971c939d268abdbd0963cd45d046442f7af (diff)
downloadrust-7e6d97bc39b1a4169db9f139c24abaac8f94048e.tar.gz
rust-7e6d97bc39b1a4169db9f139c24abaac8f94048e.zip
Inline std::os::unix::ffi::OsStringExt methods
Diffstat (limited to 'library/std/src')
-rw-r--r--library/std/src/os/unix/ffi/os_str.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/library/std/src/os/unix/ffi/os_str.rs b/library/std/src/os/unix/ffi/os_str.rs
index 54c9a9382f2..650f712bc6e 100644
--- a/library/std/src/os/unix/ffi/os_str.rs
+++ b/library/std/src/os/unix/ffi/os_str.rs
@@ -28,9 +28,11 @@ pub trait OsStringExt: Sealed {
 
 #[stable(feature = "rust1", since = "1.0.0")]
 impl OsStringExt for OsString {
+    #[inline]
     fn from_vec(vec: Vec<u8>) -> OsString {
         FromInner::from_inner(Buf { inner: vec })
     }
+    #[inline]
     fn into_vec(self) -> Vec<u8> {
         self.into_inner().inner
     }