Fix lifetime issue.

This commit is contained in:
Tom Alexander
2023-07-14 18:04:01 -04:00
parent 4966b02b79
commit b9a7c3f7f3
3 changed files with 9 additions and 9 deletions

View File

@@ -37,9 +37,9 @@ fn plain_text_end<'r, 's>(context: Context<'r, 's>, input: &'s str) -> Res<&'s s
recognize(parser_with_context!(any_object_except_plain_text)(context))(input)
}
impl<'x> RematchObject for PlainText<'x> {
impl<'x> RematchObject<'x> for PlainText<'x> {
fn rematch_object<'r, 's>(
&self,
&'x self,
_context: Context<'r, 's>,
input: &'s str,
) -> Res<&'s str, Object<'s>> {