Remove lifetimes

This commit is contained in:
Daniel Lockyer 2017-03-30 12:42:35 +01:00
parent cecb0b58a7
commit 469e9f6bd2

View file

@ -422,7 +422,7 @@ impl MaybeString {
} }
} }
fn into_cow<'a>(self, input: &'a str) -> Cow<'a, str> { fn into_cow(self, input: &str) -> Cow<str> {
match self { match self {
MaybeString::NotEscaped(start) => Cow::Borrowed(&input[start..]), MaybeString::NotEscaped(start) => Cow::Borrowed(&input[start..]),
MaybeString::Owned(s) => Cow::Owned(s), MaybeString::Owned(s) => Cow::Owned(s),