diff options
| author | Laurenz <laurmaedje@gmail.com> | 2024-12-04 14:17:38 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-04 13:17:38 +0000 |
| commit | bf1c7db6fcee967ea802a19430c1e27444e16da1 (patch) | |
| tree | 17e9228d3844fa964e88ee88f6fa4b8a2ca9a3c1 /crates/typst-cli/src/timings.rs | |
| parent | 884c02872ce9d7432c3b67a920011cf385ce70b2 (diff) | |
Clean up CLI argument parsing (#5521)
Diffstat (limited to 'crates/typst-cli/src/timings.rs')
| -rw-r--r-- | crates/typst-cli/src/timings.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/typst-cli/src/timings.rs b/crates/typst-cli/src/timings.rs index 4446bbf9..9f017dc1 100644 --- a/crates/typst-cli/src/timings.rs +++ b/crates/typst-cli/src/timings.rs @@ -22,8 +22,8 @@ impl Timer { /// record timings for a specific function invocation. pub fn new(args: &CliArguments) -> Timer { let record = match &args.command { - Command::Compile(command) => command.timings.clone(), - Command::Watch(command) => command.timings.clone(), + Command::Compile(command) => command.args.timings.clone(), + Command::Watch(command) => command.args.timings.clone(), _ => None, }; |
