Revert "with_additional_fail_matcher is not going to work due to lifetimes with the new forced borrow."
This reverts commit 1d9fb42b6214bd922ac99ea23c1b80b756055128.
This commit is contained in:
parent
8659a1083e
commit
29add885f3
@ -98,15 +98,6 @@ impl<'r> ContextTree<'r, dyn OrgModeContext<'r>> {
|
|||||||
ErrorKind::ManyTill,
|
ErrorKind::ManyTill,
|
||||||
)));
|
)));
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn with_additional_fail_matcher(
|
|
||||||
&'r self,
|
|
||||||
fail_matcher: &'r Matcher,
|
|
||||||
) -> OrgModeContextTree<'r> {
|
|
||||||
self.with_additional_node(FailMatcherNode {
|
|
||||||
fail_matcher: ChainBehavior::AndParent(Some(fail_matcher)),
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'r> OrgModeContext<'r> for FailMatcherNode<'r> {
|
impl<'r> OrgModeContext<'r> for FailMatcherNode<'r> {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user