cargo fmt

This commit is contained in:
Henry Schimke
2023-01-10 14:34:33 -06:00
parent 9f7a41f81c
commit 4f1bceee66
3 changed files with 8 additions and 8 deletions

View File

@@ -57,9 +57,9 @@ impl DataBlock {
// First count the total number of data blocks // First count the total number of data blocks
let ecBlockArray = ecBlocks.getECBlocks(); let ecBlockArray = ecBlocks.getECBlocks();
let totalBlocks = ecBlockArray.iter().fold(0, |acc, ecBlock| { let totalBlocks = ecBlockArray
acc + ecBlock.getCount() as usize .iter()
}); .fold(0, |acc, ecBlock| acc + ecBlock.getCount() as usize);
// Now establish DataBlocks of the appropriate size and number of data codewords // Now establish DataBlocks of the appropriate size and number of data codewords
let mut result = Vec::with_capacity(totalBlocks); let mut result = Vec::with_capacity(totalBlocks);