Skip to content

Commit cd5ab97

Browse files
committed
inline impl AsRef<OsStr> for OsString
1 parent bf1d20c commit cd5ab97

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libstd/ffi/os_str.rs

+1
Original file line numberDiff line numberDiff line change
@@ -966,6 +966,7 @@ impl AsRef<OsStr> for OsStr {
966966

967967
#[stable(feature = "rust1", since = "1.0.0")]
968968
impl AsRef<OsStr> for OsString {
969+
#[inline]
969970
fn as_ref(&self) -> &OsStr {
970971
self
971972
}

0 commit comments

Comments
 (0)