Skip to content

Commit

Permalink
inline impl AsRef<OsStr> for OsString
Browse files Browse the repository at this point in the history
  • Loading branch information
tesuji committed Jan 10, 2020
1 parent bf1d20c commit cd5ab97
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/libstd/ffi/os_str.rs
Expand Up @@ -966,6 +966,7 @@ impl AsRef<OsStr> for OsStr {

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

0 comments on commit cd5ab97

Please sign in to comment.