From 4966b02b79f7bfca6b15b04dd34326677935712e Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Fri, 14 Jul 2023 17:45:20 -0400 Subject: [PATCH] Expanded rematch_target to 3 lifetimes, no fix. --- src/parser/radio_link.rs | 4 ++-- src/parser/text_markup.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/parser/radio_link.rs b/src/parser/radio_link.rs index ee81609..cd8fe0f 100644 --- a/src/parser/radio_link.rs +++ b/src/parser/radio_link.rs @@ -48,9 +48,9 @@ pub fn radio_link<'r, 's>(context: Context<'r, 's>, input: &'s str) -> Res<&'s s } #[tracing::instrument(ret, level = "debug")] -pub fn rematch_target<'r, 's>( +pub fn rematch_target<'x, 'r, 's>( context: Context<'r, 's>, - target: &'r Vec>, + target: &'x Vec>, input: &'s str, ) -> Res<&'s str, Vec>> { let mut remaining = input; diff --git a/src/parser/text_markup.rs b/src/parser/text_markup.rs index 1ea98f6..09f5442 100644 --- a/src/parser/text_markup.rs +++ b/src/parser/text_markup.rs @@ -246,7 +246,7 @@ fn _text_markup_end<'r, 's, 'x>( impl<'x> RematchObject for Bold<'x> { fn rematch_object<'r, 's>( - &'r self, + &self, _context: Context<'r, 's>, input: &'s str, ) -> Res<&'s str, Object<'s>> { @@ -257,7 +257,7 @@ impl<'x> RematchObject for Bold<'x> { } } -#[tracing::instrument(ret, level = "debug")] +// #[tracing::instrument(ret, level = "debug")] fn _rematch_text_markup_object<'r, 's, 'x>( context: Context<'r, 's>, input: &'s str,