diff options
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/vec.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liballoc/vec.rs b/src/liballoc/vec.rs index c8ff4a41536..f557d056dc8 100644 --- a/src/liballoc/vec.rs +++ b/src/liballoc/vec.rs @@ -2399,7 +2399,7 @@ impl<T: Clone> From<&mut [T]> for Vec<T> { #[stable(feature = "vec_from_array", since = "1.42.0")] impl<T, const N: usize> From<[T; N]> for Vec<T> { - fn from(arr: [T; N]) -> Vec<T> { + fn from(arr: [T; N]) -> Self { <[T]>::into_vec(box arr) } } |
