diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-07-05 13:52:58 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-07-05 13:52:58 +0200 |
| commit | 0f92eb8a4a7d8715381f5b5d748d22315f6ff9c7 (patch) | |
| tree | 59ae3be626ef5728a794c2f570df15fd220b0807 /src/liballoc/string.rs | |
| parent | f119bf2761ab11ca577fac9881678c04d3e7fdb0 (diff) | |
| parent | fc67e5774df2ca5d5fdcf78835983b8c2ddb134d (diff) | |
| download | rust-0f92eb8a4a7d8715381f5b5d748d22315f6ff9c7.tar.gz rust-0f92eb8a4a7d8715381f5b5d748d22315f6ff9c7.zip | |
Rollup merge of #62123 - jeremystucki:needless_lifetimes_std, r=alexcrichton
Remove needless lifetimes (std) Split from #62039
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 1b0d3c19692..366191e2c85 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() { |
