Skip to content

Commit 17883ca

Browse files
committed
clippy
1 parent 3834a6e commit 17883ca

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

crates/krilla/src/content.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1174,10 +1174,8 @@ where
11741174
// to have a valid codepoint mapping. So in this case, we still add the codepoints
11751175
// to each glyph in the cluster, this will result in worse copy-pasting in viewers
11761176
// that don't support `ActualText`.
1177-
if !incompatible_codepoint {
1178-
if previous_range != Some(range.clone()) || forbid_invalid_codepoints {
1179-
pdf_font.set_codepoints(pdf_glyph, text.to_string());
1180-
}
1177+
if !incompatible_codepoint && (previous_range != Some(range.clone()) || forbid_invalid_codepoints) {
1178+
pdf_font.set_codepoints(pdf_glyph, text.to_string());
11811179
}
11821180

11831181
(range, incompatible_codepoint)

0 commit comments

Comments
 (0)