1
Fork 0

inline impl AsRef<OsStr> for OsString

This commit is contained in:
Lzu Tao 2020-01-10 19:06:18 +00:00
parent bf1d20c4b6
commit cd5ab97480

View file

@ -966,6 +966,7 @@ impl AsRef<OsStr> for OsStr {
#[stable(feature = "rust1", since = "1.0.0")] #[stable(feature = "rust1", since = "1.0.0")]
impl AsRef<OsStr> for OsString { impl AsRef<OsStr> for OsString {
#[inline]
fn as_ref(&self) -> &OsStr { fn as_ref(&self) -> &OsStr {
self self
} }