fix clippy

This commit is contained in:
Justin Starry 2021-09-25 12:04:08 -04:00 committed by Justin Starry
parent 46757238de
commit 6f08f9decd
1 changed files with 3 additions and 4 deletions

View File

@ -1219,10 +1219,9 @@ mod tests {
.packets
.iter_mut()
.enumerate()
.for_each(|(index, mut packet)| {
let packet_offsets = do_get_packet_offsets(&packet, current_offset).unwrap();
check_for_simple_vote_transaction(&mut packet, &packet_offsets, current_offset)
.ok();
.for_each(|(index, packet)| {
let packet_offsets = do_get_packet_offsets(packet, current_offset).unwrap();
check_for_simple_vote_transaction(packet, &packet_offsets, current_offset).ok();
if index == 1 {
assert!(packet.meta.is_simple_vote_tx);
} else {