summaryrefslogtreecommitdiff
path: root/src/bin/main.rs
diff options
context:
space:
mode:
authorLaurenz Mädje <laurmaedje@gmail.com>2019-07-28 22:27:09 +0200
committerLaurenz Mädje <laurmaedje@gmail.com>2019-07-28 22:27:09 +0200
commitb96a7e0cf3c97463ecb746d859b675541a427774 (patch)
treedcbae7e29b84264c448ebf211dad5a31c3340715 /src/bin/main.rs
parent51faad45ad54e8db0009edb3b3b589059b051cb6 (diff)
Reuse font loader across compilations 🔋
Diffstat (limited to 'src/bin/main.rs')
-rw-r--r--src/bin/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/main.rs b/src/bin/main.rs
index 7ba61645..df2cbc79 100644
--- a/src/bin/main.rs
+++ b/src/bin/main.rs
@@ -54,7 +54,7 @@ fn run() -> Result<(), Box<dyn Error>> {
// Export the document into a PDF file.
let exporter = PdfExporter::new();
let dest_file = File::create(&dest_path)?;
- exporter.export(&document, BufWriter::new(dest_file))?;
+ exporter.export(&document, typesetter.loader(), BufWriter::new(dest_file))?;
Ok(())
}