about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorJoshua Nelson <jyn514@gmail.com>2020-02-01 13:35:26 +0000
committerJoshua Nelson <jyn514@gmail.com>2020-03-10 23:44:46 +0000
commit1ac4a461425b7a2e29aeb3c2b2cae944f8cbcc77 (patch)
tree02513a0e68387f46a690e319374651f440c8d305 /src/liballoc
parent96794d86f127dd409760765a64a36c07d9ed585f (diff)
downloadrust-1ac4a461425b7a2e29aeb3c2b2cae944f8cbcc77.tar.gz
rust-1ac4a461425b7a2e29aeb3c2b2cae944f8cbcc77.zip
make the impl a little prettier
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/vec.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liballoc/vec.rs b/src/liballoc/vec.rs
index d5339453f81..921c0427959 100644
--- a/src/liballoc/vec.rs
+++ b/src/liballoc/vec.rs
@@ -2404,7 +2404,7 @@ where
 {
     #[cfg(not(test))]
     fn from(s: [T; N]) -> Vec<T> {
-        (box s as Box<[T]>).into_vec()
+        <[T]>::into_vec(box s)
     }
     #[cfg(test)]
     fn from(s: [T; N]) -> Vec<T> {