make the impl a little prettier

This commit is contained in:
Joshua Nelson 2020-02-01 13:35:26 +00:00
parent 96794d86f1
commit 1ac4a46142
1 changed files with 1 additions and 1 deletions

View File

@ -2404,7 +2404,7 @@ where
{ {
#[cfg(not(test))] #[cfg(not(test))]
fn from(s: [T; N]) -> Vec<T> { fn from(s: [T; N]) -> Vec<T> {
(box s as Box<[T]>).into_vec() <[T]>::into_vec(box s)
} }
#[cfg(test)] #[cfg(test)]
fn from(s: [T; N]) -> Vec<T> { fn from(s: [T; N]) -> Vec<T> {