Improve code comments

"what" comments add no value. Remove one and make the other describe
"why" the cast is ok.
This commit is contained in:
Tobin C. Harding 2023-11-14 15:54:16 +11:00
parent fb280a3179
commit 458712212d
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
1 changed files with 1 additions and 3 deletions

View File

@ -272,10 +272,8 @@ mod tests {
#[test]
fn iterator_ops_are_homomorphic() {
let mut fake_signature_data = [0; MAX_LEN];
// fill it with numbers 0 - 71
for (i, byte) in fake_signature_data.iter_mut().enumerate() {
// up to MAX_LEN
*byte = i as u8;
*byte = i as u8; // cast ok because MAX_LEN fits in u8.
}
let fake_signature = SerializedSignature { data: fake_signature_data, len: MAX_LEN };