diff options
| author | Sébastien d'Herbais de Thun <sebastien.d.herbais@gmail.com> | 2023-11-30 12:57:04 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-30 12:57:04 +0100 |
| commit | 5bdec9e1d81f0193e88e136453945481021440e1 (patch) | |
| tree | e054220ee900d5a5ce89830641004d6c0b68fc94 /crates/typst-cli/src | |
| parent | 79c2d1f29eb0be9d9dfd20f48fa8f54388fada6b (diff) | |
Optimized labels & introspector (#2801)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
Diffstat (limited to 'crates/typst-cli/src')
| -rw-r--r-- | crates/typst-cli/src/query.rs | 4 |
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()) |
