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:
Tom Alexander 2022-11-26 22:36:00 -05:00
parent 8659a1083e
commit 29add885f3
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

View File

@ -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> {