diff options
| author | Laurenz <laurmaedje@gmail.com> | 2024-01-16 14:49:52 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2024-01-16 14:52:50 +0100 |
| commit | 7cb257a1accdf0af99b7210a2db53ea562764e15 (patch) | |
| tree | a513a9465ebc2d830b889ed180a8ee0747a6e031 /crates/typst-pdf | |
| parent | 55a50ace1e72d739769c38cc365742aa723c5221 (diff) | |
More consistent naming
Diffstat (limited to 'crates/typst-pdf')
| -rw-r--r-- | crates/typst-pdf/src/outline.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/typst-pdf/src/outline.rs b/crates/typst-pdf/src/outline.rs index 172f6d3c..23893873 100644 --- a/crates/typst-pdf/src/outline.rs +++ b/crates/typst-pdf/src/outline.rs @@ -19,7 +19,7 @@ pub(crate) fn write_outline(ctx: &mut PdfContext) -> Option<Ref> { let mut last_skipped_level = None; let elements = ctx.document.introspector.query(&HeadingElem::elem().select()); for elem in elements.iter() { - let heading = elem.to::<HeadingElem>().unwrap(); + let heading = elem.to_packed::<HeadingElem>().unwrap(); let leaf = HeadingNode::leaf(heading); if leaf.bookmarked { |
