Expanded rematch_target to 3 lifetimes, no fix.

This commit is contained in:
Tom Alexander 2023-07-14 17:45:20 -04:00
parent ddaefdbf78
commit 4966b02b79
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
2 changed files with 4 additions and 4 deletions

View File

@ -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<Object<'s>>,
target: &'x Vec<Object<'s>>,
input: &'s str,
) -> Res<&'s str, Vec<Object<'s>>> {
let mut remaining = input;

View File

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