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/main.rs | |
| parent | 884c02872ce9d7432c3b67a920011cf385ce70b2 (diff) | |
Clean up CLI argument parsing (#5521)
Diffstat (limited to 'crates/typst-cli/src/main.rs')
| -rw-r--r-- | crates/typst-cli/src/main.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/typst-cli/src/main.rs b/crates/typst-cli/src/main.rs index e4861d6f..8cef1415 100644 --- a/crates/typst-cli/src/main.rs +++ b/crates/typst-cli/src/main.rs @@ -60,11 +60,11 @@ fn main() -> ExitCode { /// Execute the requested command. fn dispatch() -> HintedStrResult<()> { - let timer = Timer::new(&ARGS); + let mut timer = Timer::new(&ARGS); match &ARGS.command { - Command::Compile(command) => crate::compile::compile(timer, command.clone())?, - Command::Watch(command) => crate::watch::watch(timer, command.clone())?, + Command::Compile(command) => crate::compile::compile(&mut timer, command)?, + Command::Watch(command) => crate::watch::watch(&mut timer, command)?, Command::Init(command) => crate::init::init(command)?, Command::Query(command) => crate::query::query(command)?, Command::Fonts(command) => crate::fonts::fonts(command), |
