diff options
| author | Zicklag <zicklag@katharostech.com> | 2023-09-11 10:03:47 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-11 12:03:47 +0200 |
| commit | 6483d3035bab4df2d644acb738974413977aaa37 (patch) | |
| tree | 44b329b5ac2f0b22b75172abb5f55180f4862f75 /crates/typst-cli/src/query.rs | |
| parent | d056280165b981ef7a11f5bfb02417ef96760352 (diff) | |
Support proxy and custom certificate configuration. (#2006)
Diffstat (limited to 'crates/typst-cli/src/query.rs')
| -rw-r--r-- | crates/typst-cli/src/query.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/typst-cli/src/query.rs b/crates/typst-cli/src/query.rs index bf02f49d..68cf3319 100644 --- a/crates/typst-cli/src/query.rs +++ b/crates/typst-cli/src/query.rs @@ -12,7 +12,7 @@ use crate::set_failed; use crate::world::SystemWorld; /// Execute a query command. -pub fn query(command: QueryCommand) -> StrResult<()> { +pub fn query(command: &QueryCommand) -> StrResult<()> { let mut world = SystemWorld::new(&command.common)?; tracing::info!("Starting querying"); @@ -27,8 +27,8 @@ pub fn query(command: QueryCommand) -> StrResult<()> { match result { // Retrieve and print query results. Ok(document) => { - let data = retrieve(&world, &command, &document)?; - let serialized = format(data, &command)?; + let data = retrieve(&world, command, &document)?; + let serialized = format(data, command)?; println!("{serialized}"); print_diagnostics(&world, &[], &warnings, command.common.diagnostic_format) .map_err(|_| "failed to print diagnostics")?; |
