Fix Utf8CStr::as_ref() -> OsStr

This commit is contained in:
LoveSy 2023-06-12 17:30:42 +08:00 committed by John Wu
parent 23c1f0111b
commit a9387e63e1

View File

@ -199,7 +199,7 @@ impl AsRef<str> for Utf8CStr {
impl AsRef<OsStr> for Utf8CStr { impl AsRef<OsStr> for Utf8CStr {
#[inline] #[inline]
fn as_ref(&self) -> &OsStr { fn as_ref(&self) -> &OsStr {
OsStr::new(self) OsStr::new(self as &str)
} }
} }