fix(ci): resolve clippy warnings

This commit is contained in:
NimBold
2026-07-05 20:42:09 +03:30
parent 3da73c623f
commit dabd252ab7
2 changed files with 9 additions and 10 deletions
+2 -4
View File
@@ -9,10 +9,8 @@ pub fn kill_process_tree(pid: u32) {
while i < to_kill.len() {
let current_pid = to_kill[i];
for (p, process) in sys.processes() {
if process.parent() == Some(current_pid) {
if !to_kill.contains(p) {
to_kill.push(*p);
}
if process.parent() == Some(current_pid) && !to_kill.contains(p) {
to_kill.push(*p);
}
}
i += 1;