fix and enable collapsible_if lint

Signed-off-by: June Strawberry <june@vern.cc>
This commit is contained in:
June Strawberry
2026-01-15 17:39:33 -05:00
parent fb102f0e0a
commit 04e66a03d3
54 changed files with 453 additions and 504 deletions

View File

@@ -18,10 +18,10 @@ impl NamespaceRegex {
return true;
}
if let Some(non_exclusive) = &self.non_exclusive {
if non_exclusive.is_match(heystack) {
return true;
}
if let Some(non_exclusive) = &self.non_exclusive
&& non_exclusive.is_match(heystack)
{
return true;
}
false
}
@@ -30,10 +30,10 @@ impl NamespaceRegex {
#[inline]
#[must_use]
pub fn is_exclusive_match(&self, heystack: &str) -> bool {
if let Some(exclusive) = &self.exclusive {
if exclusive.is_match(heystack) {
return true;
}
if let Some(exclusive) = &self.exclusive
&& exclusive.is_match(heystack)
{
return true;
}
false
}