diff options
author | Daniel Lockyer <thisisdaniellockyer@gmail.com> | 2017-03-30 12:42:35 +0100 |
---|---|---|
committer | Daniel Lockyer <thisisdaniellockyer@gmail.com> | 2017-04-12 09:29:00 +0100 |
commit | e382b8d895e13b7cac6d35a905aa0490f3bb03d1 (patch) | |
tree | 52648a4c83fa31b0be8b01de7e575483293fcdf3 | |
parent | d1558f78efff59b167f4ce264b18534b125f697a (diff) | |
download | milf-rs-e382b8d895e13b7cac6d35a905aa0490f3bb03d1.tar.gz milf-rs-e382b8d895e13b7cac6d35a905aa0490f3bb03d1.zip |
Remove lifetimes
-rw-r--r-- | src/tokens.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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<str> { match self { MaybeString::NotEscaped(start) => Cow::Borrowed(&input[start..]), MaybeString::Owned(s) => Cow::Owned(s), |