@@ -2575,8 +2575,11 @@ impl<'a, 'b> Compiler<'a, 'b> {
25752575 // space for the sequence in the destination memory. This will also
25762576 // internally insert checks that the returned pointer is aligned
25772577 // correctly for the destination.
2578- let dst_mem =
2579- self . malloc ( dst_opts, MallocSize :: Local ( dst_byte_len. idx ) , dst_element_align) ;
2578+ let dst_mem = self . malloc (
2579+ dst_opts,
2580+ MallocSize :: Local ( dst_byte_len. idx ) ,
2581+ dst_element_align,
2582+ ) ;
25802583
25812584 // With all the pointers and byte lengths verify that both the source
25822585 // and the destination buffers are in-bounds.
@@ -2642,11 +2645,7 @@ impl<'a, 'b> Compiler<'a, 'b> {
26422645 /// If a loop was opened, emits: decrement remaining, BrIf to loop
26432646 /// head, End loop, End block, and frees iteration locals. Then stores
26442647 /// the ptr/len pair into the destination and frees all temporaries.
2645- fn end_translate_sequence (
2646- & mut self ,
2647- seq : SequenceTranslation < ' _ > ,
2648- dst : & Destination ,
2649- ) {
2648+ fn end_translate_sequence ( & mut self , seq : SequenceTranslation < ' _ > , dst : & Destination ) {
26502649 if let Some ( loop_state) = seq. loop_state {
26512650 // Update the remaining count, falling through to break out if
26522651 // it's zero now.
@@ -2781,8 +2780,7 @@ impl<'a, 'b> Compiler<'a, 'b> {
27812780 // Each map entry is a tuple<K, V> following record layout rules.
27822781 let src_key_abi = self . types . canonical_abi ( & src_map_ty. key ) ;
27832782 let src_value_abi = self . types . canonical_abi ( & src_map_ty. value ) ;
2784- let src_entry_abi =
2785- CanonicalAbiInfo :: record ( [ src_key_abi, src_value_abi] . into_iter ( ) ) ;
2783+ let src_entry_abi = CanonicalAbiInfo :: record ( [ src_key_abi, src_value_abi] . into_iter ( ) ) ;
27862784 let ( _, src_key_align) = self . types . size_align ( src_mem_opts, & src_map_ty. key ) ;
27872785 let ( _, src_value_align) = self . types . size_align ( src_mem_opts, & src_map_ty. value ) ;
27882786 let ( src_tuple_size, src_entry_align) = if src_mem_opts. memory64 {
@@ -2803,8 +2801,7 @@ impl<'a, 'b> Compiler<'a, 'b> {
28032801
28042802 let dst_key_abi = self . types . canonical_abi ( & dst_map_ty. key ) ;
28052803 let dst_value_abi = self . types . canonical_abi ( & dst_map_ty. value ) ;
2806- let dst_entry_abi =
2807- CanonicalAbiInfo :: record ( [ dst_key_abi, dst_value_abi] . into_iter ( ) ) ;
2804+ let dst_entry_abi = CanonicalAbiInfo :: record ( [ dst_key_abi, dst_value_abi] . into_iter ( ) ) ;
28082805 let ( _, dst_key_align) = self . types . size_align ( dst_mem_opts, & dst_map_ty. key ) ;
28092806 let ( _, dst_value_align) = self . types . size_align ( dst_mem_opts, & dst_map_ty. value ) ;
28102807 let ( dst_tuple_size, dst_entry_align) = if dst_mem_opts. memory64 {
0 commit comments