diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-02-02 12:23:15 +0100 |
|---|---|---|
| committer | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-02-02 12:23:15 +0100 |
| commit | e70c2fbd5cbe8bf176f1ed01ba9a53cec7e842a5 (patch) | |
| tree | df0f306048f4d711a4fd090c294a3606e750ae9e /src/liballoc/sync.rs | |
| parent | 748970dfa9c12c1a09da4ff3ec724e4dbf7e796d (diff) | |
| download | rust-e70c2fbd5cbe8bf176f1ed01ba9a53cec7e842a5.tar.gz rust-e70c2fbd5cbe8bf176f1ed01ba9a53cec7e842a5.zip | |
liballoc: elide some lifetimes.
Diffstat (limited to 'src/liballoc/sync.rs')
| -rw-r--r-- | src/liballoc/sync.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/liballoc/sync.rs b/src/liballoc/sync.rs index 5e7a26132cb..2512e27e316 100644 --- a/src/liballoc/sync.rs +++ b/src/liballoc/sync.rs @@ -1605,7 +1605,7 @@ impl<T> From<T> for Arc<T> { } #[stable(feature = "shared_from_slice", since = "1.21.0")] -impl<'a, T: Clone> From<&'a [T]> for Arc<[T]> { +impl<T: Clone> From<&[T]> for Arc<[T]> { #[inline] fn from(v: &[T]) -> Arc<[T]> { <Self as ArcFromSlice<T>>::from_slice(v) @@ -1613,7 +1613,7 @@ impl<'a, T: Clone> From<&'a [T]> for Arc<[T]> { } #[stable(feature = "shared_from_slice", since = "1.21.0")] -impl<'a> From<&'a str> for Arc<str> { +impl From<&str> for Arc<str> { #[inline] fn from(v: &str) -> Arc<str> { let arc = Arc::<[u8]>::from(v.as_bytes()); |
