File tree 2 files changed +3
-7
lines changed
2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change 1
1
#![ cfg_attr( not( feature = "std" ) , no_std) ]
2
- #![ feature(
3
- iter_array_chunks,
4
- maybe_uninit_array_assume_init,
5
- maybe_uninit_uninit_array
6
- ) ]
2
+ #![ feature( iter_array_chunks, maybe_uninit_array_assume_init) ]
7
3
#![ warn( missing_docs) ]
8
4
#![ doc = include_str ! ( "../README.md" ) ]
9
5
Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ macro_rules! array {
97
97
type Error = <X as Unpackable >:: Error ;
98
98
99
99
fn unpack( mut buf: & [ u8 ] ) -> Result <( usize , Self ) , Self :: Error > {
100
- let mut array = MaybeUninit :: uninit_array ( ) ;
100
+ let mut array = [ const { MaybeUninit :: uninit ( ) } ; $n ] ;
101
101
let n =
102
102
array
103
103
. iter_mut( )
@@ -117,7 +117,7 @@ macro_rules! array {
117
117
I : IntoIterator <Item = u8 >,
118
118
{
119
119
let mut bytes = bytes. into_iter( ) ;
120
- let mut array = MaybeUninit :: uninit_array ( ) ;
120
+ let mut array = [ const { MaybeUninit :: uninit ( ) } ; $n ] ;
121
121
let n =
122
122
array
123
123
. iter_mut( )
You can’t perform that action at this time.
0 commit comments