Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianLars authored Aug 17, 2023
1 parent aeaefd0 commit 9c764ce
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions crates/nsis-process/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,14 @@ fn get_processes(name: &str) -> Vec<u32> {

if Process32FirstW(handle, &mut process) != 0 {
while Process32NextW(handle, &mut process) != 0 {
if decode_wide(&process.szExeFile)
.to_str()
.unwrap_or_default()
.to_lowercase()
== name.to_lowercase()
if current_pid != process.th32ProcessID
&& decode_wide(&process.szExeFile)
.to_str()
.unwrap_or_default()
.to_lowercase()
== name.to_lowercase()
{
if current_pid != process.th32ProcessID {
processes.push(process.th32ProcessID);
}
processes.push(process.th32ProcessID);
}
}
}
Expand Down

0 comments on commit 9c764ce

Please sign in to comment.