diff --git a/src/html.rs b/src/html.rs index 40e92966..55bf5bc0 100644 --- a/src/html.rs +++ b/src/html.rs @@ -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>, diff --git a/src/parser/mod.rs b/src/parser/mod.rs index dae598ec..0993dadf 100644 --- a/src/parser/mod.rs +++ b/src/parser/mod.rs @@ -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>, root: &'a AstNode<'a>, options: &'o Options<'c>) -> Self { Parser { arena,