Skip to content

Commit

Permalink
add some lifetime bounds for MSRV support.
Browse files Browse the repository at this point in the history
  • Loading branch information
kivikakk committed Jul 11, 2024
1 parent b5ada11 commit 433e15e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/html.rs
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ where
Ok(())
}

impl<'o, 'c> HtmlFormatter<'o, 'c> {
impl<'o, 'c: 'o> HtmlFormatter<'o, 'c> {
fn new(
options: &'o Options<'c>,
output: &'o mut WriteWithLast<'o>,
Expand Down
2 changes: 1 addition & 1 deletion src/parser/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -938,7 +938,7 @@ struct FootnoteDefinition<'a> {
total_references: u32,
}

impl<'a, 'o, 'c> Parser<'a, 'o, 'c> {
impl<'a, 'o, 'c: 'o> Parser<'a, 'o, 'c> {
fn new(arena: &'a Arena<AstNode<'a>>, root: &'a AstNode<'a>, options: &'o Options<'c>) -> Self {
Parser {
arena,
Expand Down

0 comments on commit 433e15e

Please sign in to comment.