diff options
| author | Laurenz Mädje <laurmaedje@gmail.com> | 2019-07-28 22:27:09 +0200 |
|---|---|---|
| committer | Laurenz Mädje <laurmaedje@gmail.com> | 2019-07-28 22:27:09 +0200 |
| commit | b96a7e0cf3c97463ecb746d859b675541a427774 (patch) | |
| tree | dcbae7e29b84264c448ebf211dad5a31c3340715 /src/bin/main.rs | |
| parent | 51faad45ad54e8db0009edb3b3b589059b051cb6 (diff) | |
Reuse font loader across compilations 🔋
Diffstat (limited to 'src/bin/main.rs')
| -rw-r--r-- | src/bin/main.rs | 2 |
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(()) } |
