chore: linting

This commit is contained in:
zhom
2026-02-24 09:30:29 +04:00
parent 7eb56a2296
commit 0ff0570321
3 changed files with 8 additions and 6 deletions
+1 -2
View File
@@ -26,7 +26,6 @@ static SHOULD_QUIT: AtomicBool = AtomicBool::new(false);
#[cfg(windows)]
fn win_process_exists(pid: u32) -> bool {
use std::ptr;
const PROCESS_QUERY_LIMITED_INFORMATION: u32 = 0x1000;
extern "system" {
@@ -35,7 +34,7 @@ fn win_process_exists(pid: u32) -> bool {
}
let handle = unsafe { OpenProcess(PROCESS_QUERY_LIMITED_INFORMATION, 0, pid) };
if handle.is_null() || handle == ptr::null_mut() {
if handle.is_null() {
false
} else {
unsafe { CloseHandle(handle) };