mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-22 16:07:39 +00:00
Fix Utf8CStr::as_ref() -> OsStr
This commit is contained in:
parent
23c1f0111b
commit
a9387e63e1
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user