It is building again.

This commit is contained in:
Tom Alexander 2022-12-03 21:50:06 -05:00
parent 83881e55b5
commit 13ee93f31c
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
3 changed files with 3 additions and 3 deletions

View File

@ -26,6 +26,6 @@ impl<T> List<T> {
}
pub fn get_data(&self) -> Option<&T> {
self.head.map(|rc_node| &rc_node.as_ref().data)
self.head.as_ref().map(|rc_node| &rc_node.data)
}
}

View File

@ -15,7 +15,7 @@ impl<'r> ContextTree<'r> {
ContextTree { tree: List::new() }
}
pub fn with_additional_node<'x>(&self, data: ContextElement<'x>) -> ContextTree<'x> {
pub fn with_additional_node(&self, data: ContextElement<'r>) -> ContextTree<'r> {
let new_list = self.tree.push_front(data);
ContextTree { tree: new_list }
}

View File

@ -1,6 +1,6 @@
macro_rules! parser_with_context {
($target:ident) => {
move |context| |i| $target(&context, i)
move |context| move |i| $target(&context, i)
};
}
pub(crate) use parser_with_context;