Fix lifetime issue.
This commit is contained in:
parent
6d1675fa00
commit
c475dce6da
@ -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())
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user