fix small clippy issue and bump version

This commit is contained in:
Henry Schimke
2023-01-10 09:55:19 -06:00
parent 149dc260c9
commit 752d8c87b9
4 changed files with 25 additions and 22 deletions

View File

@@ -215,9 +215,13 @@ fn correctErrors(codewordBytes: &mut [u8], numDataCodewords: usize) -> Result<()
// Copy back into array of bytes -- only need to worry about the bytes that were data
// We don't care about errors in the error-correction codewords
for (code_word, sent_code_word ) in codewordBytes.iter_mut().zip(sending_code_words.iter()).take(numDataCodewords){
*code_word = *sent_code_word as u8;
for (code_word, sent_code_word) in codewordBytes
.iter_mut()
.zip(sending_code_words.iter())
.take(numDataCodewords)
{
*code_word = *sent_code_word as u8;
}
Ok(())
}