summaryrefslogtreecommitdiff
path: root/crates/typst-cli/src
diff options
context:
space:
mode:
Diffstat (limited to 'crates/typst-cli/src')
-rw-r--r--crates/typst-cli/src/query.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/typst-cli/src/query.rs b/crates/typst-cli/src/query.rs
index a84cef79..dadcd978 100644
--- a/crates/typst-cli/src/query.rs
+++ b/crates/typst-cli/src/query.rs
@@ -4,7 +4,6 @@ use serde::Serialize;
use typst::diag::{bail, StrResult};
use typst::eval::{eval_string, EvalMode, Tracer};
use typst::foundations::{Content, IntoValue, LocatableSelector, Scope};
-use typst::introspection::Introspector;
use typst::model::Document;
use typst::syntax::Span;
use typst::World;
@@ -76,7 +75,8 @@ fn retrieve(
})?
.cast::<LocatableSelector>()?;
- Ok(Introspector::new(&document.pages)
+ Ok(document
+ .introspector
.query(&selector.0)
.into_iter()
.map(|x| x.into_inner())