Replace use of iter.nth(0) with iter.next()
This fixes the clippy error iter_nth_zero:
"iter.next() is equivalent to iter.nth(0), as they both
consume the next element, but is more readable."
@@ -422,7 +422,7 @@ impl ExecutorThread {
) {
let tf = TransactionFamily::from_pair(&execution_event.1.pair());
if let Some(ea_senders) = fanout_threads.get(&tf) {
- if let Some(sender) = ea_senders.iter().nth(0) {
+ if let Some(sender) = ea_senders.iter().next() {
if let Err(err) = sender.sender.send(ExecutionCommand::Event(execution_event)) {
warn!("During send of ExecutionCommand: {}", err);
}
