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
@@ -137,13 +137,9 @@ impl GameNetworking {
fn get_game_exe_path(system_info: &mut SystemInfo) -> Option<&Path> {
system_info.refresh();
if let Some(process) = system_info
system_info
.processes()
.iter()
.find(|p| p.name() == EXE_ENHANCED || p.name() == EXE_LEGACY)
{
process.exe()
} else {
None
}
.and_then(|p| p.exe())
}