diff --git a/crates/typst-pdf/src/outline.rs b/crates/typst-pdf/src/outline.rs index d8f25af62..152e8bd5d 100644 --- a/crates/typst-pdf/src/outline.rs +++ b/crates/typst-pdf/src/outline.rs @@ -131,7 +131,7 @@ impl<'a> HeadingNode<'a> { // Prepend the numbering to title if it exists let title = match &self.element.numbering_displayed { // The space should be a `h(0.3em)`, but only plain-texts are supported here. - Some(ref num) => format!("{num} {title}"), + Some(num) => format!("{num} {title}"), None => title, };