Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurenzV committed Dec 18, 2024
1 parent 3834a6e commit 17883ca
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions crates/krilla/src/content.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1174,10 +1174,8 @@ where
// to have a valid codepoint mapping. So in this case, we still add the codepoints
// to each glyph in the cluster, this will result in worse copy-pasting in viewers
// that don't support `ActualText`.
if !incompatible_codepoint {
if previous_range != Some(range.clone()) || forbid_invalid_codepoints {
pdf_font.set_codepoints(pdf_glyph, text.to_string());
}
if !incompatible_codepoint && (previous_range != Some(range.clone()) || forbid_invalid_codepoints) {
pdf_font.set_codepoints(pdf_glyph, text.to_string());
}

(range, incompatible_codepoint)
Expand Down

0 comments on commit 17883ca

Please sign in to comment.