mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-06-13 05:37:47 +02:00
Fix Utf8CStr::as_ref() -> OsStr
This commit is contained in:
@ -199,7 +199,7 @@ impl AsRef<str> for Utf8CStr {
|
||||
impl AsRef<OsStr> for Utf8CStr {
|
||||
#[inline]
|
||||
fn as_ref(&self) -> &OsStr {
|
||||
OsStr::new(self)
|
||||
OsStr::new(self as &str)
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user