summaryrefslogtreecommitdiff
path: root/crates/typst-library/src/foundations
diff options
context:
space:
mode:
Diffstat (limited to 'crates/typst-library/src/foundations')
-rw-r--r--crates/typst-library/src/foundations/symbol.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/typst-library/src/foundations/symbol.rs b/crates/typst-library/src/foundations/symbol.rs
index 2c391ee4..50fcfb40 100644
--- a/crates/typst-library/src/foundations/symbol.rs
+++ b/crates/typst-library/src/foundations/symbol.rs
@@ -411,7 +411,7 @@ fn find<'a>(
}
let score = (matching, Reverse(total));
- if best_score.map_or(true, |b| score > b) {
+ if best_score.is_none_or(|b| score > b) {
best = Some(candidate.1);
best_score = Some(score);
}