fix(clippy): Replace map_or with is_some_and for simplified Option checks

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Abimael Martell
2026-02-15 21:13:21 -08:00
co-authored by Claude Opus 4.6
parent fb4d168882
commit 1ad903e956
+2 -2
View File
@@ -772,13 +772,13 @@ fn should_join_items(prev_item: &TextItem, curr_item: &TextItem) -> bool {
.trim()
.chars()
.last()
.map_or(false, |c| c.is_lowercase());
.is_some_and(|c| c.is_lowercase());
let curr_starts_lower = curr_item
.text
.trim()
.chars()
.next()
.map_or(false, |c| c.is_lowercase());
.is_some_and(|c| c.is_lowercase());
if prev_ends_lower && curr_starts_lower {
return gap < font_size * 0.18;
}