about summary refs log tree commit diff
path: root/src/liballoc/string.rs
diff options
context:
space:
mode:
authorJeremy Stucki <jeremy@myelin.ch>2019-06-25 19:43:18 +0200
committerJeremy Stucki <stucki.jeremy@gmail.com>2019-07-01 12:15:27 +0200
commit47ea8ae0223434e917ce840a963b495019bbe4d1 (patch)
treee3a0d7ee7dabd96a95b2cef88b663bdf7c9ed76f /src/liballoc/string.rs
parent5748825cc8c74cccef0059cdd4043e6e9b4aa188 (diff)
downloadrust-47ea8ae0223434e917ce840a963b495019bbe4d1.tar.gz
rust-47ea8ae0223434e917ce840a963b495019bbe4d1.zip
Remove needless lifetimes
Diffstat (limited to 'src/liballoc/string.rs')
-rw-r--r--src/liballoc/string.rs2
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() {