Add intermediate lifetime.
This commit is contained in:
@@ -8,9 +8,9 @@ pub(crate) struct IFootnoteReference {
|
||||
}
|
||||
|
||||
impl IFootnoteReference {
|
||||
pub(crate) async fn new<'parse>(
|
||||
registry: &mut Registry<'parse>,
|
||||
original: &organic::types::FootnoteReference<'parse>,
|
||||
pub(crate) async fn new<'intermediate, 'parse>(
|
||||
registry: &mut Registry<'intermediate, 'parse>,
|
||||
original: &'intermediate organic::types::FootnoteReference<'parse>,
|
||||
) -> Result<IFootnoteReference, CustomError> {
|
||||
let footnote_id = registry.get_footnote_reference_id(original.label, &original.definition);
|
||||
Ok(IFootnoteReference { footnote_id })
|
||||
|
||||
Reference in New Issue
Block a user