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