Skip to content

Commit 7e6d97b

Browse files
Inline std::os::unix::ffi::OsStringExt methods
1 parent 4a7fb97 commit 7e6d97b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

library/std/src/os/unix/ffi/os_str.rs

+2
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,11 @@ pub trait OsStringExt: Sealed {
2828

2929
#[stable(feature = "rust1", since = "1.0.0")]
3030
impl OsStringExt for OsString {
31+
#[inline]
3132
fn from_vec(vec: Vec<u8>) -> OsString {
3233
FromInner::from_inner(Buf { inner: vec })
3334
}
35+
#[inline]
3436
fn into_vec(self) -> Vec<u8> {
3537
self.into_inner().inner
3638
}

0 commit comments

Comments
 (0)