Skip to content

Commit 1ac4a46

Browse files
committed
make the impl a little prettier
1 parent 96794d8 commit 1ac4a46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/liballoc/vec.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2404,7 +2404,7 @@ where
24042404
{
24052405
#[cfg(not(test))]
24062406
fn from(s: [T; N]) -> Vec<T> {
2407-
(box s as Box<[T]>).into_vec()
2407+
<[T]>::into_vec(box s)
24082408
}
24092409
#[cfg(test)]
24102410
fn from(s: [T; N]) -> Vec<T> {

0 commit comments

Comments
 (0)