mirror of
https://github.com/pykeio/ort
synced 2026-04-25 16:34:55 +02:00
fix: silence clippy warning (#506)
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user