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
let ecBlockArray = ecBlocks.getECBlocks();
let totalBlocks = ecBlockArray.iter().fold(0, |acc, ecBlock| {
acc + ecBlock.getCount() as usize
});
let totalBlocks = ecBlockArray
.iter()
.fold(0, |acc, ecBlock| acc + ecBlock.getCount() as usize);
// Now establish DataBlocks of the appropriate size and number of data codewords
let mut result = Vec::with_capacity(totalBlocks);