diff --git a/src/context/list.rs b/src/context/list.rs index c0c021f..405329c 100644 --- a/src/context/list.rs +++ b/src/context/list.rs @@ -29,7 +29,7 @@ impl<'parent, T> List<'parent, T> { } pub fn iter_list(&self) -> IterList<'_, T> { - Iter { next: Some(self) } + IterList { next: Some(self) } } } diff --git a/src/context/parser_context.rs b/src/context/parser_context.rs index b8cdf60..2e49f28 100644 --- a/src/context/parser_context.rs +++ b/src/context/parser_context.rs @@ -3,7 +3,9 @@ use nom::combinator::eof; use super::exiting::ExitClass; use super::global_settings::GlobalSettings; use super::list::List; +use super::list::ListType; use super::DynContextMatcher; +use super::RefContext; use crate::error::Res; use crate::parser::OrgSource; use crate::types::Object; @@ -175,7 +177,7 @@ impl<'r, 's> Context<'r, 's> { #[cfg_attr(feature = "tracing", tracing::instrument(ret, level = "debug"))] fn document_end<'r, 's>( - _context: Context<'r, 's>, + _context: RefContext<'r, 's>, input: OrgSource<'s>, ) -> Res, OrgSource<'s>> { eof(input)