From 29add885f3b6f8f27ebcc55cd3ae953b335d6219 Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Sat, 26 Nov 2022 22:36:00 -0500 Subject: [PATCH] Revert "with_additional_fail_matcher is not going to work due to lifetimes with the new forced borrow." This reverts commit 1d9fb42b6214bd922ac99ea23c1b80b756055128. --- src/parser/nom_context.rs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/parser/nom_context.rs b/src/parser/nom_context.rs index f68d010..fb4185e 100644 --- a/src/parser/nom_context.rs +++ b/src/parser/nom_context.rs @@ -98,15 +98,6 @@ impl<'r> ContextTree<'r, dyn OrgModeContext<'r>> { 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> {