Add intermediate lifetime.
This commit is contained in:
@@ -7,11 +7,11 @@ type IdCounter = u16;
|
||||
pub(crate) struct Registry<'intermediate, 'parse> {
|
||||
id_counter: IdCounter,
|
||||
targets: HashMap<&'parse str, String>,
|
||||
footnote_ids: Vec<(Option<&'parse str>, &Vec<Object<'parse>>)>,
|
||||
footnote_ids: Vec<(Option<&'parse str>, &'intermediate Vec<Object<'parse>>)>,
|
||||
}
|
||||
|
||||
impl<'parse> Registry<'parse> {
|
||||
pub(crate) fn new() -> Registry<'parse> {
|
||||
impl<'intermediate, 'parse> Registry<'intermediate, 'parse> {
|
||||
pub(crate) fn new() -> Registry<'intermediate, 'parse> {
|
||||
Registry {
|
||||
id_counter: 0,
|
||||
targets: HashMap::new(),
|
||||
@@ -32,7 +32,7 @@ impl<'parse> Registry<'parse> {
|
||||
pub(crate) fn get_footnote_reference_id<'b>(
|
||||
&'b mut self,
|
||||
label: Option<&'parse str>,
|
||||
definition: &'parse Vec<Object<'parse>>,
|
||||
definition: &'intermediate Vec<Object<'parse>>,
|
||||
) -> usize {
|
||||
if let None = label {
|
||||
// If it has no label then it must always get a new ID.
|
||||
|
||||
Reference in New Issue
Block a user