From d0408682d85bf819af2577bd9fa6d60351e2b352 Mon Sep 17 00:00:00 2001 From: elvis Date: Wed, 17 Sep 2025 01:04:13 +0200 Subject: [PATCH] didnt solve all unstable lets, now solved --- rsprocess/src/process.rs | 16 ++++++++-------- rsprocess/src/set.rs | 6 ++---- 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/rsprocess/src/process.rs b/rsprocess/src/process.rs index 682388b..7278756 100644 --- a/rsprocess/src/process.rs +++ b/rsprocess/src/process.rs @@ -141,10 +141,10 @@ impl BasicProcess for Process { next_process, } = self { - if let Self::RecursiveIdentifier { identifier } = &**next_process - && identifier == id - { - return Some(entities); + if let Self::RecursiveIdentifier { identifier } = &**next_process { + if identifier == id { + return Some(entities); + } } } @@ -355,10 +355,10 @@ impl BasicProcess for PositiveProcess { next_process, } = self { - if let Self::RecursiveIdentifier { identifier } = &**next_process - && identifier == id - { - return Some(entities); + if let Self::RecursiveIdentifier { identifier } = &**next_process { + if identifier == id { + return Some(entities); + } } } None diff --git a/rsprocess/src/set.rs b/rsprocess/src/set.rs index 63060a9..d8908f4 100644 --- a/rsprocess/src/set.rs +++ b/rsprocess/src/set.rs @@ -444,10 +444,8 @@ impl BasicSet for PositiveSet { .identifiers .iter() .filter(|(id, s)| { - if let Some(s1) = self.identifiers.get(id) - && s1 == *s - { - true + if let Some(s1) = self.identifiers.get(id) { + s1 == *s } else { false }