From a9387e63e1363405994dd04792e8bc785acbddc7 Mon Sep 17 00:00:00 2001 From: LoveSy Date: Mon, 12 Jun 2023 17:30:42 +0800 Subject: [PATCH] Fix Utf8CStr::as_ref() -> OsStr --- native/src/base/misc.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) } }