File tree Expand file tree Collapse file tree 3 files changed +4
-8
lines changed
Expand file tree Collapse file tree 3 files changed +4
-8
lines changed Original file line number Diff line number Diff line change 11[package ]
22name = " msgpacker"
3- version = " 0.4.5 "
3+ version = " 0.4.6 "
44authors = [" Victor Lopez <victor@codx.io>" ]
55categories = [" compression" , " encoding" , " parser-implementations" ]
66edition = " 2021"
Original file line number Diff line number Diff line change 11#![ 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) ]
73#![ warn( missing_docs) ]
84#![ doc = include_str ! ( "../README.md" ) ]
95
Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ macro_rules! array {
9797 type Error = <X as Unpackable >:: Error ;
9898
9999 fn unpack( mut buf: & [ u8 ] ) -> Result <( usize , Self ) , Self :: Error > {
100- let mut array = MaybeUninit :: uninit_array ( ) ;
100+ let mut array = :: core :: array :: from_fn ( |_| MaybeUninit :: uninit ( ) ) ;
101101 let n =
102102 array
103103 . iter_mut( )
@@ -117,7 +117,7 @@ macro_rules! array {
117117 I : IntoIterator <Item = u8 >,
118118 {
119119 let mut bytes = bytes. into_iter( ) ;
120- let mut array = MaybeUninit :: uninit_array ( ) ;
120+ let mut array = :: core :: array :: from_fn ( |_| MaybeUninit :: uninit ( ) ) ;
121121 let n =
122122 array
123123 . iter_mut( )
You can’t perform that action at this time.
0 commit comments