Skip to content

Commit

Permalink
Revert explicit iter changes
Browse files Browse the repository at this point in the history
  • Loading branch information
van-sprundel committed Oct 13, 2024
1 parent 04d14d5 commit ce1d1c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ntp-proto/src/nts_record.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3129,7 +3129,7 @@ mod test {
let (mut client, server) = client_server_pair(&ClientType::Uncertified);

let mut buffer = Vec::with_capacity(1024);
for record in &NtsRecord::client_key_exchange_records([]) {
for record in NtsRecord::client_key_exchange_records([]).iter() {
record.write(&mut buffer).unwrap();
}
client.tls_connection.writer().write_all(&buffer).unwrap();
Expand Down Expand Up @@ -3227,7 +3227,7 @@ mod test {
#[test]
fn test_keyexchange_invalid_input() {
let mut buffer = Vec::with_capacity(1024);
for record in &NtsRecord::client_key_exchange_records([]) {
for record in NtsRecord::client_key_exchange_records([]).iter() {
record.write(&mut buffer).unwrap();
}

Expand Down

0 comments on commit ce1d1c1

Please sign in to comment.