Fix lifetime issue.

This commit is contained in:
Tom Alexander 2023-08-22 23:14:23 -04:00
parent 6d1675fa00
commit c475dce6da
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ impl<'s> InputTake for OrgSource<'s> {
}
}
impl<'s, O: Into<&'s str>> Compare<O> for OrgSource<'s> {
impl<'s, 'o, O: Into<&'o str>> Compare<O> for OrgSource<'s> {
fn compare(&self, t: O) -> nom::CompareResult {
(&self.full_source[self.start..self.end]).compare(t.into())
}