@@ -707,7 +707,7 @@ impl<T, const N: usize> [T; N] {
707
707
) ]
708
708
#[ inline]
709
709
pub fn split_array_ref < const M : usize > ( & self ) -> ( & [ T ; M ] , & [ T ] ) {
710
- ( & self [ .. ] ) . split_first_chunk :: < M > ( ) . unwrap ( )
710
+ self . split_first_chunk :: < M > ( ) . unwrap ( )
711
711
}
712
712
713
713
/// Divides one mutable array reference into two at an index.
@@ -740,7 +740,7 @@ impl<T, const N: usize> [T; N] {
740
740
) ]
741
741
#[ inline]
742
742
pub fn split_array_mut < const M : usize > ( & mut self ) -> ( & mut [ T ; M ] , & mut [ T ] ) {
743
- ( & mut self [ .. ] ) . split_first_chunk_mut :: < M > ( ) . unwrap ( )
743
+ self . split_first_chunk_mut :: < M > ( ) . unwrap ( )
744
744
}
745
745
746
746
/// Divides one array reference into two at an index from the end.
@@ -785,7 +785,7 @@ impl<T, const N: usize> [T; N] {
785
785
) ]
786
786
#[ inline]
787
787
pub fn rsplit_array_ref < const M : usize > ( & self ) -> ( & [ T ] , & [ T ; M ] ) {
788
- ( & self [ .. ] ) . split_last_chunk :: < M > ( ) . unwrap ( )
788
+ self . split_last_chunk :: < M > ( ) . unwrap ( )
789
789
}
790
790
791
791
/// Divides one mutable array reference into two at an index from the end.
@@ -818,7 +818,7 @@ impl<T, const N: usize> [T; N] {
818
818
) ]
819
819
#[ inline]
820
820
pub fn rsplit_array_mut < const M : usize > ( & mut self ) -> ( & mut [ T ] , & mut [ T ; M ] ) {
821
- ( & mut self [ .. ] ) . split_last_chunk_mut :: < M > ( ) . unwrap ( )
821
+ self . split_last_chunk_mut :: < M > ( ) . unwrap ( )
822
822
}
823
823
}
824
824
0 commit comments