]> git.lizzy.rs Git - rust.git/commitdiff
inline `impl AsRef<OsStr> for OsString`
authorLzu Tao <taolzu@gmail.com>
Fri, 10 Jan 2020 19:06:18 +0000 (19:06 +0000)
committerLzu Tao <taolzu@gmail.com>
Fri, 10 Jan 2020 19:06:18 +0000 (19:06 +0000)
src/libstd/ffi/os_str.rs

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