summaryrefslogtreecommitdiff
path: root/src/export
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2020-10-07 19:28:34 +0200
committerLaurenz <laurmaedje@gmail.com>2020-10-07 19:28:34 +0200
commit13230db68c3cb2842f23f95fc1b47fd989e6277d (patch)
treeb0bf94a8e3f935a7e9076237783846dee14e3e81 /src/export
parentd2e220245d9c17a0ac8c3474984924f65ed6b835 (diff)
Fix some clippy warnings ✔
Diffstat (limited to 'src/export')
-rw-r--r--src/export/pdf.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/export/pdf.rs b/src/export/pdf.rs
index ccbc01f1..02b54471 100644
--- a/src/export/pdf.rs
+++ b/src/export/pdf.rs
@@ -141,6 +141,7 @@ impl<'a, W: Write> PdfExporter<'a, W> {
for (pos, element) in &page.elements {
match element {
LayoutElement::Text(shaped) => {
+ // Check if we need to issue a font switching action.
if shaped.face != face || shaped.size != size {
face = shaped.face;
size = shaped.size;