make the impl a little prettier
This commit is contained in:
parent
96794d86f1
commit
1ac4a46142
|
@ -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> {
|
||||||
|
|
Loading…
Reference in New Issue