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(); }