diff --git a/src/parser/org_source.rs b/src/parser/org_source.rs index c0e70f4..3f43c65 100644 --- a/src/parser/org_source.rs +++ b/src/parser/org_source.rs @@ -46,7 +46,7 @@ impl<'s> InputTake for OrgSource<'s> { } } -impl<'s, O: Into<&'s str>> Compare for OrgSource<'s> { +impl<'s, 'o, O: Into<&'o str>> Compare for OrgSource<'s> { fn compare(&self, t: O) -> nom::CompareResult { (&self.full_source[self.start..self.end]).compare(t.into()) }