Cleaning up compiler warnings.
This commit is contained in:
@@ -28,6 +28,7 @@ impl<'r, 's> ContextTree<'r, 's> {
|
||||
}
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
pub fn ptr_eq<'x, 'y>(&self, other: &ContextTree<'x, 'y>) -> bool {
|
||||
self.tree.ptr_eq(&other.tree)
|
||||
}
|
||||
@@ -37,29 +38,10 @@ impl<'r, 's> ContextTree<'r, 's> {
|
||||
ContextTree { tree: new_list }
|
||||
}
|
||||
|
||||
pub fn pop_front(&mut self) -> (Option<ContextElement<'r, 's>>, ContextTree<'r, 's>) {
|
||||
let (popped_element, remaining) = self.tree.pop_front();
|
||||
(popped_element, ContextTree { tree: remaining })
|
||||
}
|
||||
|
||||
pub fn iter(&self) -> impl Iterator<Item = &Rc<Node<ContextElement<'r, 's>>>> {
|
||||
self.tree.iter()
|
||||
}
|
||||
|
||||
pub fn iter_until<'x: 'r>(
|
||||
&'r self,
|
||||
other: &'x ContextTree<'x, 's>,
|
||||
) -> impl Iterator<Item = &Rc<Node<ContextElement<'r, 's>>>> {
|
||||
self.tree.iter_until(&other.tree)
|
||||
}
|
||||
|
||||
pub fn into_iter_until<'x: 'r>(
|
||||
self,
|
||||
other: &'x ContextTree<'x, 's>,
|
||||
) -> impl Iterator<Item = ContextElement<'r, 's>> {
|
||||
self.tree.into_iter_until(&other.tree)
|
||||
}
|
||||
|
||||
#[tracing::instrument(ret, level = "debug")]
|
||||
pub fn check_exit_matcher(
|
||||
&'r self,
|
||||
|
||||
Reference in New Issue
Block a user