Minor refactor of enumeration in tests in note_encryption.rs

Co-authored-by: str4d <thestr4d@gmail.com>
This commit is contained in:
ying tong 2020-08-07 08:46:15 +08:00 committed by GitHub
parent 13f4d0844e
commit 72cc8fc916
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -1025,7 +1025,7 @@ mod tests {
];
let leadbytes = [0x02, 0x03, 0x01];
for (_i, (&height, &leadbyte)) in heights.iter().zip(leadbytes.iter()).enumerate() {
for (&height, &leadbyte) in heights.iter().zip(leadbytes.iter()) {
let (ovk, ivk, cv, cmu, epk, mut enc_ciphertext, out_ciphertext) =
random_enc_ciphertext(height, &mut rng);
@ -1202,7 +1202,7 @@ mod tests {
];
let leadbytes = [0x02, 0x03, 0x01];
for (_i, (&height, &leadbyte)) in heights.iter().zip(leadbytes.iter()).enumerate() {
for (&height, &leadbyte) in heights.iter().zip(leadbytes.iter()) {
let (ovk, ivk, cv, cmu, epk, mut enc_ciphertext, out_ciphertext) =
random_enc_ciphertext(height, &mut rng);
@ -1472,7 +1472,7 @@ mod tests {
];
let leadbytes = [0x02, 0x03, 0x01];
for (_i, (&height, &leadbyte)) in heights.iter().zip(leadbytes.iter()).enumerate() {
for (&height, &leadbyte) in heights.iter().zip(leadbytes.iter()) {
let (ovk, _, cv, cmu, epk, mut enc_ciphertext, out_ciphertext) =
random_enc_ciphertext(height, &mut rng);