diff options
| author | Jeremy Stucki <jeremy@myelin.ch> | 2019-06-21 17:46:41 +0200 |
|---|---|---|
| committer | Jeremy Stucki <stucki.jeremy@gmail.com> | 2019-07-03 10:00:23 +0200 |
| commit | 87e8613fd41e7a4237a146cbe49835bb88295df6 (patch) | |
| tree | 830a58d6762de2f51b9bb81ec8375b4c1419cd7c /src/liballoc/string.rs | |
| parent | 8301de16dafc81a3b5d94aa0707ad83bdb56a599 (diff) | |
| download | rust-87e8613fd41e7a4237a146cbe49835bb88295df6.tar.gz rust-87e8613fd41e7a4237a146cbe49835bb88295df6.zip | |
Remove needless lifetimes
Diffstat (limited to 'src/liballoc/string.rs')
| -rw-r--r-- | src/liballoc/string.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liballoc/string.rs b/src/liballoc/string.rs index 7f7722548f5..89d24a234e9 100644 --- a/src/liballoc/string.rs +++ b/src/liballoc/string.rs @@ -552,7 +552,7 @@ impl String { /// assert_eq!("Hello �World", output); /// ``` #[stable(feature = "rust1", since = "1.0.0")] - pub fn from_utf8_lossy<'a>(v: &'a [u8]) -> Cow<'a, str> { + pub fn from_utf8_lossy(v: &[u8]) -> Cow<'_, str> { let mut iter = lossy::Utf8Lossy::from_bytes(v).chunks(); let (first_valid, first_broken) = if let Some(chunk) = iter.next() { |
