fix: silence clippy warning (#506)

This commit is contained in:
n12n
2025-12-30 12:27:35 -05:00
committed by GitHub
parent 52537fe0ce
commit 8f0fd1d6f0

View File

@@ -81,6 +81,7 @@ pub(crate) fn path_to_os_char(path: impl AsRef<std::path::Path>) -> OsCharArray
path
}
#[allow(unused)]
pub(crate) fn str_to_os_char(string: &str) -> OsCharArray {
#[cfg(target_family = "windows")]
let os_char = string.encode_utf16().chain(core::iter::once(0)).collect();