diff --git a/src/tokens.rs b/src/tokens.rs index 6b7c3bc..11f47f5 100644 --- a/src/tokens.rs +++ b/src/tokens.rs @@ -422,7 +422,7 @@ impl MaybeString { } } - fn into_cow<'a>(self, input: &'a str) -> Cow<'a, str> { + fn into_cow(self, input: &str) -> Cow { match self { MaybeString::NotEscaped(start) => Cow::Borrowed(&input[start..]), MaybeString::Owned(s) => Cow::Owned(s),