From 941868dcc89c16db7cce5576c6584f2990d691d9 Mon Sep 17 00:00:00 2001 From: futile Date: Sat, 13 Sep 2025 12:02:19 +0100 Subject: [PATCH] use `&[c_char]` instead of `&[i8]` in `c_char_arr_to_string` --- src/util/system_info.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/util/system_info.rs b/src/util/system_info.rs index 3d5d260..273c3d0 100644 --- a/src/util/system_info.rs +++ b/src/util/system_info.rs @@ -1,4 +1,5 @@ use std::{ + ffi::c_char, os::windows::process::CommandExt, path::{Path, PathBuf}, process::Command, @@ -112,7 +113,7 @@ fn get_exe_full_path(process_entry: &PROCESSENTRY32) -> Option { }) } -fn c_char_arr_to_string(arr: &[i8]) -> String { +fn c_char_arr_to_string(arr: &[c_char]) -> String { arr.iter() .take_while(|&&b| b != 0) .map(|&b| b as u8 as char)