diff --git a/crates/typst-library/src/introspection/introspector.rs b/crates/typst-library/src/introspection/introspector.rs index 81294fe35..000fbd202 100644 --- a/crates/typst-library/src/introspection/introspector.rs +++ b/crates/typst-library/src/introspection/introspector.rs @@ -10,7 +10,7 @@ use typst_utils::NonZeroExt; use crate::diag::{bail, StrResult}; use crate::foundations::{Content, Label, Repr, Selector}; -use crate::introspection::{Locatable, Location, Tag}; +use crate::introspection::{Location, Tag}; use crate::layout::{Frame, FrameItem, Point, Position, Transform}; use crate::model::Numbering; @@ -422,11 +422,9 @@ impl IntrospectorBuilder { ) { match tag { Tag::Start(elem) => { - if elem.can::() { - let loc = elem.location().unwrap(); - if self.seen.insert(loc) { - sink.push((elem.clone(), position)); - } + let loc = elem.location().unwrap(); + if self.seen.insert(loc) { + sink.push((elem.clone(), position)); } } Tag::End(loc, key) => {