diff --git a/native/src/base/misc.rs b/native/src/base/misc.rs index e99acd58b..a91550c54 100644 --- a/native/src/base/misc.rs +++ b/native/src/base/misc.rs @@ -199,7 +199,7 @@ impl AsRef for Utf8CStr { impl AsRef for Utf8CStr { #[inline] fn as_ref(&self) -> &OsStr { - OsStr::new(self) + OsStr::new(self as &str) } }