Stop using PathBuf in package.rs

This commit is contained in:
topjohnwu
2025-04-24 16:47:55 -07:00
committed by John Wu
parent 4ad26d3dfb
commit c7d1af9805
2 changed files with 34 additions and 35 deletions

View File

@@ -192,6 +192,12 @@ impl From<String> for Utf8CString {
}
}
impl From<&str> for Utf8CString {
fn from(value: &str) -> Self {
value.to_string().into()
}
}
impl Borrow<Utf8CStr> for Utf8CString {
fn borrow(&self) -> &Utf8CStr {
self.deref()