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
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;