From 733c5c9913e0550d6c009eea639e4a7b77b88c1b Mon Sep 17 00:00:00 2001 From: Wenzhuo Liu Date: Thu, 3 Aug 2023 06:31:28 +0800 Subject: [PATCH] fix(cli): include export in compile time (#1816) --- crates/typst-cli/src/compile.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/typst-cli/src/compile.rs b/crates/typst-cli/src/compile.rs index f68193191..2cce13e15 100644 --- a/crates/typst-cli/src/compile.rs +++ b/crates/typst-cli/src/compile.rs @@ -49,7 +49,6 @@ pub fn compile_once( let mut tracer = Tracer::default(); let result = typst::compile(world, &mut tracer); - let duration = start.elapsed(); let warnings = tracer.warnings(); @@ -57,6 +56,7 @@ pub fn compile_once( // Export the PDF / PNG. Ok(document) => { export(&document, command)?; + let duration = start.elapsed(); tracing::info!("Compilation succeeded in {duration:?}"); if watching {