working through clippy errors

This commit is contained in:
Henry Schimke
2022-10-14 17:40:16 -05:00
parent 875fc6a05b
commit 27f491ffaa
5 changed files with 14 additions and 15 deletions

View File

@@ -90,9 +90,10 @@ impl DataBlock {
// (where n may be 0) have 1 more byte. Figure out where these start.
let shorterBlocksTotalCodewords = result[0].codewords.len();
let mut longerBlocksStartAt = result.len() - 1;
while (longerBlocksStartAt >= 0) {
loop {
//while longerBlocksStartAt >= 0 {
let numCodewords = result[longerBlocksStartAt].codewords.len();
if (numCodewords == shorterBlocksTotalCodewords) {
if numCodewords == shorterBlocksTotalCodewords {
break;
}
longerBlocksStartAt-=1;