fix: use is_some_and instead of map_or for clippy compliance

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Test
2026-04-02 16:13:38 +02:00
parent 6946aad139
commit 2a21dc4b08

View File

@@ -320,7 +320,7 @@ fn evaluate_condition(cond: &FilterCondition, entry: &VaultEntry) -> bool {
}
}
FilterOp::IsEmpty => field_value.as_deref().map_or(true, |s| s.is_empty()),
FilterOp::IsNotEmpty => field_value.as_deref().map_or(false, |s| !s.is_empty()),
FilterOp::IsNotEmpty => field_value.as_deref().is_some_and(|s| !s.is_empty()),
FilterOp::Before => match (&field_value, &cond_value) {
(Some(f), Some(v)) => f < v,
_ => false,