fix clippy
This commit is contained in:
parent
46757238de
commit
6f08f9decd
|
@ -1219,10 +1219,9 @@ mod tests {
|
||||||
.packets
|
.packets
|
||||||
.iter_mut()
|
.iter_mut()
|
||||||
.enumerate()
|
.enumerate()
|
||||||
.for_each(|(index, mut packet)| {
|
.for_each(|(index, packet)| {
|
||||||
let packet_offsets = do_get_packet_offsets(&packet, current_offset).unwrap();
|
let packet_offsets = do_get_packet_offsets(packet, current_offset).unwrap();
|
||||||
check_for_simple_vote_transaction(&mut packet, &packet_offsets, current_offset)
|
check_for_simple_vote_transaction(packet, &packet_offsets, current_offset).ok();
|
||||||
.ok();
|
|
||||||
if index == 1 {
|
if index == 1 {
|
||||||
assert!(packet.meta.is_simple_vote_tx);
|
assert!(packet.meta.is_simple_vote_tx);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue