a few clippy fixes

This commit is contained in:
2025-09-12 05:04:12 +01:00
parent b553e418f5
commit 71c3c69ea2
7 changed files with 28 additions and 36 deletions
+2 -6
View File
@@ -51,15 +51,11 @@ unsafe extern "system" {
fn get_gta_pid(system_info: &mut SystemInfo) -> Option<u32> {
system_info.refresh();
if let Some(p) = system_info
system_info
.processes()
.iter()
.find(|p| p.name() == EXE_ENHANCED || p.name() == EXE_LEGACY)
{
return Some(p.pid());
} else {
return None;
}
.map(|p| p.pid())
}
pub fn activate(game_handle: &mut HANDLE, system_info: &mut SystemInfo) -> Result<(), ()> {