From 3a96fe70d885c99173a1cd4a67ac95cfcb7f4373 Mon Sep 17 00:00:00 2001 From: "Y.D.X." <73375426+YDX-2147483647@users.noreply.github.com> Date: Tue, 22 Jul 2025 22:12:42 +0800 Subject: [PATCH] Migrate to Rust 2024 Follows #6637 --- crates/typst-pdf/src/outline.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, };