From c475dce6daa5e4b5da108b1e54d8daeab574083e Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Tue, 22 Aug 2023 23:14:23 -0400 Subject: [PATCH] Fix lifetime issue. --- src/parser/org_source.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parser/org_source.rs b/src/parser/org_source.rs index c0e70f49..3f43c657 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()) }