Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/reflow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
Loading