From b117a790ce67516de65d1507449d9fdeea8c95a8 Mon Sep 17 00:00:00 2001 From: van-sprundel Date: Sat, 12 Oct 2024 22:18:20 +0200 Subject: [PATCH] Revert clippy fix Box is not an iter --- ntpd/src/daemon/keyexchange.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ntpd/src/daemon/keyexchange.rs b/ntpd/src/daemon/keyexchange.rs index 72d8d277f..49ec2782b 100644 --- a/ntpd/src/daemon/keyexchange.rs +++ b/ntpd/src/daemon/keyexchange.rs @@ -924,7 +924,7 @@ mod tests { fn client_key_exchange_message_length() -> usize { let mut buffer = Vec::with_capacity(1024); - for record in &ntp_proto::NtsRecord::client_key_exchange_records(vec![]) { + for record in ntp_proto::NtsRecord::client_key_exchange_records(vec![]).iter() { record.write(&mut buffer).unwrap(); }