summaryrefslogtreecommitdiff
path: root/cli/src
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-11-26 23:42:40 +0100
committerLaurenz <laurmaedje@gmail.com>2022-11-26 23:52:01 +0100
commit6bafc6391061d4b589dea835705a08b25a4df9f8 (patch)
tree4add85f17fc56da341acfb58a223ea20d80c280a /cli/src
parent0579fd4409375aaa9fd8e87a06fd59097b5fcd97 (diff)
Document metadata
Diffstat (limited to 'cli/src')
-rw-r--r--cli/src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/src/main.rs b/cli/src/main.rs
index 2825f74c..5463c3ec 100644
--- a/cli/src/main.rs
+++ b/cli/src/main.rs
@@ -236,8 +236,8 @@ fn compile_once(world: &mut SystemWorld, command: &CompileCommand) -> StrResult<
match typst::compile(world, source) {
// Export the PDF.
- Ok(frames) => {
- let buffer = typst::export::pdf(&frames);
+ Ok(document) => {
+ let buffer = typst::export::pdf(&document);
fs::write(&command.output, buffer).map_err(|_| "failed to write PDF file")?;
status(command, Status::Success).unwrap();
}