From 0a0968f02537d20ea9079a0a7471379b2a2ae24a Mon Sep 17 00:00:00 2001 From: Callum Dempsey Leach Date: Fri, 24 Apr 2026 15:33:31 +0100 Subject: [PATCH] refactor(reflow): make FenceStack 'static since the fence table is compile-time --- src/reflow.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/reflow.rs b/src/reflow.rs index d0f2777..611cd79 100644 --- a/src/reflow.rs +++ b/src/reflow.rs @@ -150,13 +150,13 @@ fn emit_paragraph(lines: &[&str], prefix: &str, opts: &Options, out: &mut String /// /// Per call: O(k) where k is the number of configured fences (two /// for Markdown, zero for every other language). Amortized O(1). -struct FenceStack<'a> { - configured: &'a [Fence], - open: Vec<&'a Fence>, +struct FenceStack { + configured: &'static [Fence], + open: Vec<&'static Fence>, } -impl<'a> FenceStack<'a> { - fn new(configured: &'a [Fence]) -> Self { +impl FenceStack { + fn new(configured: &'static [Fence]) -> Self { Self { configured, open: Vec::new(),