diff options
| author | Wenzhuo Liu <mgt@oi-wiki.org> | 2023-08-03 06:31:28 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-03 00:31:28 +0200 |
| commit | 733c5c9913e0550d6c009eea639e4a7b77b88c1b (patch) | |
| tree | fcc1195cdf69fa0187abf6ab33008da5f8c64c25 /crates/typst-cli/src | |
| parent | cd163868f5a93f84a9185d14407a66d051e29dad (diff) | |
fix(cli): include export in compile time (#1816)
Diffstat (limited to 'crates/typst-cli/src')
| -rw-r--r-- | crates/typst-cli/src/compile.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/typst-cli/src/compile.rs b/crates/typst-cli/src/compile.rs index f6819319..2cce13e1 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 { |
