From f8f2ba6a5f8c8ca7dbb85cf17b73332a0c301c60 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Mon, 2 Dec 2024 13:37:33 +0100 Subject: Rename `Document` to `PagedDocument` --- crates/typst-cli/src/query.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/typst-cli/src/query.rs') diff --git a/crates/typst-cli/src/query.rs b/crates/typst-cli/src/query.rs index 90d99a5a..947a6485 100644 --- a/crates/typst-cli/src/query.rs +++ b/crates/typst-cli/src/query.rs @@ -3,7 +3,7 @@ use ecow::{eco_format, EcoString}; use serde::Serialize; use typst::diag::{bail, HintedStrResult, StrResult, Warned}; use typst::foundations::{Content, IntoValue, LocatableSelector, Scope}; -use typst::model::Document; +use typst::layout::PagedDocument; use typst::syntax::Span; use typst::World; use typst_eval::{eval_string, EvalMode}; @@ -53,7 +53,7 @@ pub fn query(command: &QueryCommand) -> HintedStrResult<()> { fn retrieve( world: &dyn World, command: &QueryCommand, - document: &Document, + document: &PagedDocument, ) -> HintedStrResult> { let selector = eval_string( &typst::ROUTINES, -- cgit v1.2.3